#4A7B22#4A7B22
#4A7B22 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 52.9% C 0.130 H 134.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #4A7B22 |
|---|---|
| RGB | rgb(74, 123, 34) |
| HSL | hsl(93, 57%, 31%) |
| HSV | hsv(93, 72%, 48%) |
| CMYK | cmyk(39.8%, 0%, 72.4%, 51.8%) |
| CIE-LAB | lab(46.63, -32.37, 41.42) |
| CIE-LCH | lch(46.63, 52.57, 128.01°) |
| OKLab | oklab(52.9% -0.0906 0.0939) |
| OKLCH | oklch(52.9% 0.13 134) |
| XYZ | xyz(10.1955, 15.7368, 4.0134) |
| Luminance | 0.1574 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dark Grass Green
#388004
ΔE00 3.75
Tree Green
#2A7E19
ΔE00 4.30
Avocado
#568203
ΔE00 5.02
Dirty Green
#667E2C
ΔE00 5.69
Green
#008000
ΔE00 6.40
Swamp
#698339
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A7B22 #53227B
analogous
#767B22 #4A7B22 #227B26
triadic
#4A7B22 #224A7B #7B224A
tetradic
#4A7B22 #22767B #53227B #7B2622
square
#4A7B22 #22767B #53227B #7B2622
split-complementary
#4A7B22 #26227B #7B2276
monochromatic
#101B07 #2D4B15 #4A7B22 #67AB2F #85CD4A
Accessibility & contrast
On white
5.06
#4A7B22 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#4A7B22 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4A7B22
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A7B22 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A7B22 | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#807114
Deuteranopia (green-blind)
#796D2A
Tritanopia (blue-blind)
#4A7669
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #4a7b22; /* rgb */ color: rgb(74, 123, 34); /* oklch */ color: oklch(52.9% 0.130 134.0);
Tailwind
colors: {
custom: {
50: '#81a163',
500: '#4a7b22',
950: '#000000',
},
}SCSS
$custom: #4a7b22; $custom-light: #81a163; $custom-dark: #000000;
JSON
{
"hex": "#4a7b22",
"rgb": {
"r": 74,
"g": 123,
"b": 34
},
"hsl": {
"h": 93.034,
"s": 56.688,
"l": 30.784
},
"oklch": {
"l": 0.529,
"c": 0.13047,
"h": 134
},
"luminance": 0.15737
}Semantic roles & 50–950 ramp
primary
#4A7B22
secondary
#814BAE
accent
#48E09C
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A