#427F1F#427F1F
#427F1F is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.5% C 0.142 H 136.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #427F1F |
|---|---|
| RGB | rgb(66, 127, 31) |
| HSL | hsl(98, 61%, 31%) |
| HSV | hsv(98, 76%, 50%) |
| CMYK | cmyk(48%, 0%, 75.6%, 50.2%) |
| CIE-LAB | lab(47.54, -37.19, 43.42) |
| CIE-LCH | lch(47.54, 57.16, 130.58°) |
| OKLab | oklab(53.54% -0.1033 0.0977) |
| OKLCH | oklch(53.54% 0.142 136.6) |
| XYZ | xyz(10.0832, 16.4353, 3.9371) |
| Luminance | 0.1644 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dark Grass Green
#388004
ΔE00 2.30
Tree Green
#2A7E19
ΔE00 2.83
Green
#008000
ΔE00 4.79
Avocado
#568203
ΔE00 5.11
Forestgreen (CSS)
#228B22
ΔE00 5.29
Darkish Green
#287C37
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#427F1F #5C1F7F
analogous
#727F1F #427F1F #1F7F2C
triadic
#427F1F #1F427F #7F1F42
tetradic
#427F1F #1F727F #5C1F7F #7F2C1F
square
#427F1F #1F727F #5C1F7F #7F2C1F
split-complementary
#427F1F #2C1F7F #7F1F72
monochromatic
#0F1D07 #284E13 #427F1F #5CB02B #79D246
Accessibility & contrast
On white
4.90
#427F1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.29
#427F1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #427F1F
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##427F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##427F1F | 1.00 | 4.90 | 4.29 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84740D
Deuteranopia (green-blind)
#7B6F29
Tritanopia (blue-blind)
#3F7A6C
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #427f1f; /* rgb */ color: rgb(66, 127, 31); /* oklch */ color: oklch(53.5% 0.142 136.6);
Tailwind
colors: {
custom: {
50: '#7ca562',
500: '#427f1f',
950: '#000000',
},
}SCSS
$custom: #427f1f; $custom-light: #7ca562; $custom-dark: #000000;
JSON
{
"hex": "#427f1f",
"rgb": {
"r": 66,
"g": 127,
"b": 31
},
"hsl": {
"h": 98.125,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.53536,
"c": 0.14222,
"h": 136.6
},
"luminance": 0.16436
}Semantic roles & 50–950 ramp
primary
#427F1F
secondary
#8B48B2
accent
#44E4AA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A