Warna bernama terdekat · #42AF51
#42AF51
Warna bernama terdekat: Matt Green
#42AF51 (rgb(66 175 81), hsl(128 45% 47%), oklch(0.67 0.166 145.9)) paling mendekati warna bernama Matt Green. Lihat tint, shade, harmoni, kontras WCAG & APCA, serta kode CSS, Tailwind v4, dan SCSS.
#42AF51
oklch(0.67 0.166 145.9)
Konversi warna
- HEX
- #42af51
- RGB
- rgb(66 175 81)
- HSL
- hsl(128 45% 47%)
- HWB
- hwb(128 26% 31%)
- OKLCH
- oklch(0.67 0.166 145.9)
- OKLab
- oklab(0.67 -0.137 0.093)
- CIE Lab
- lab(63.71 -47.28 38.08)
- LCH
- lch(63.71 60.71 141.2)
- CMYK
- cmyk(62% 0% 54% 31%)
Tint · Shade · Tone
Tint
- 5AB763
- 6EC075
- 82C886
- 94D098
- A7D8A9
- B8E0BA
- CAE8CB
- DCF0DC
- EDF7EE
Shade
- 389845
- 2F813A
- 256B2F
- 1C5624
- 14411A
- 0B2E10
- 051C07
- 010B02
- 000100
Tone
- 4DAB57
- 55A65D
- 5DA262
- 639D67
- 69986C
- 6F9470
- 748F75
- 788A79
- 7C857C
Harmoni warna
Komplementer +180°
- 42AF51
Matt Green
- C86CCB
≈ Purple Urn Orchid
Analog -30° +30°
- 42AF51
Matt Green
- 91A000
≈ Noxious
- 00AE92
≈ Hobgoblin
Triadik +120° +240°
- 42AF51
Matt Green
- 648FFA
≈ Punch Out Glove
- E9655D
≈ Emberglow
Split-komplementer +150° +210°
- 42AF51
Matt Green
- 9F7CEE
≈ Forgotten Purple
- E16399
≈ Cosmetologist’s Pink
Tetradik +90° +180° +270°
Kontras & aksesibilitas
Ag
FailDi atas putih
WCAG 2.80:1 · APCA Lc 54
Ag
AAADi atas hitam
WCAG 7.48:1 · APCA Lc 48
Warna teks terbaik: #000000
WCAG 7.48:1 (AAA) · APCA Lc 48
Contrast pairs
Cuplikan kode
CSS
:root {
--matt-green: #42af51;
--matt-green-rgb: 66 175 81;
--matt-green-oklch: oklch(0.67 0.166 145.9);
}
.element {
color: var(--matt-green);
background-color: hsl(128 45% 47%);
border-color: oklch(0.67 0.166 145.9);
}Tailwind CSS v4
@theme {
--color-matt-green: #42af51;
--color-matt-green-50: #d6ffdb;
--color-matt-green-100: #c3f8c9;
--color-matt-green-200: #a3e8ac;
--color-matt-green-300: #78cf86;
--color-matt-green-400: #53b85f;
--color-matt-green-500: #18a138;
--color-matt-green-600: #1a8830;
--color-matt-green-700: #156d26;
--color-matt-green-800: #135017;
--color-matt-green-900: #0c380f;
--color-matt-green-950: #002202;
}SCSS
$matt-green: #42af51;
$matt-green-rgb: 66, 175, 81;
$matt-green-light: mix(#fff, $matt-green, 20%);
$matt-green-dark: mix(#000, $matt-green, 20%);
.element {
color: $matt-green;
box-shadow: 0 0 0 2px rgba($matt-green, 0.35);
}