#427E1F#427E1F
#427E1F is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.3% C 0.141 H 136.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #427E1F |
|---|---|
| RGB | rgb(66, 126, 31) |
| HSL | hsl(98, 61%, 31%) |
| HSV | hsv(98, 75%, 49%) |
| CMYK | cmyk(47.6%, 0%, 75.4%, 50.6%) |
| CIE-LAB | lab(47.21, -36.76, 43.08) |
| CIE-LCH | lch(47.21, 56.64, 130.47°) |
| OKLab | oklab(53.26% -0.1022 0.097) |
| OKLCH | oklch(53.26% 0.141 136.5) |
| XYZ | xyz(9.9547, 16.1783, 3.8942) |
| Luminance | 0.1618 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dark Grass Green
#388004
ΔE00 2.43
Tree Green
#2A7E19
ΔE00 2.82
Green
#008000
ΔE00 4.86
Avocado
#568203
ΔE00 5.22
Forestgreen (CSS)
#228B22
ΔE00 5.59
Darkish Green
#287C37
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#427E1F #5B1F7E
analogous
#717E1F #427E1F #1F7E2B
triadic
#427E1F #1F427E #7E1F42
tetradic
#427E1F #1F717E #5B1F7E #7E2B1F
square
#427E1F #1F717E #5B1F7E #7E2B1F
split-complementary
#427E1F #2B1F7E #7E1F71
monochromatic
#0F1C07 #284D13 #427E1F #5CAF2B #79D146
Accessibility & contrast
On white
4.96
#427E1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#427E1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #427E1F
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##427E1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##427E1F | 1.00 | 4.96 | 4.24 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83730D
Deuteranopia (green-blind)
#7B6E28
Tritanopia (blue-blind)
#3F796C
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #427e1f; /* rgb */ color: rgb(66, 126, 31); /* oklch */ color: oklch(53.3% 0.141 136.5);
Tailwind
colors: {
custom: {
50: '#7ca461',
500: '#427e1f',
950: '#000000',
},
}SCSS
$custom: #427e1f; $custom-light: #7ca461; $custom-dark: #000000;
JSON
{
"hex": "#427e1f",
"rgb": {
"r": 66,
"g": 126,
"b": 31
},
"hsl": {
"h": 97.895,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.53262,
"c": 0.1409,
"h": 136.5
},
"luminance": 0.16179
}Semantic roles & 50–950 ramp
primary
#427E1F
secondary
#8A48B1
accent
#44E4A9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A