#788A1B#788A1B
#788A1B is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.9% C 0.131 H 118.9°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #788A1B |
|---|---|
| RGB | rgb(120, 138, 27) |
| HSL | hsl(70, 67%, 32%) |
| HSV | hsv(70, 80%, 54%) |
| CMYK | cmyk(13%, 0%, 80.4%, 45.9%) |
| CIE-LAB | lab(54.29, -21.08, 52.38) |
| CIE-LCH | lch(54.29, 56.47, 111.93°) |
| OKLab | oklab(59.88% -0.0633 0.1146) |
| OKLCH | oklch(59.88% 0.131 118.9) |
| XYZ | xyz(17.0324, 22.2493, 4.4340) |
| Luminance | 0.2225 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Swamp Green
#748500
ΔE00 2.31
Dark Yellow Green
#728F02
ΔE00 2.81
Shit Green
#758000
ΔE00 4.02
Olivedrab
#6B8E23
ΔE00 4.12
Ugly Green
#7A9703
ΔE00 4.78
Khaki Green
#728639
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#788A1B #2D1B8A
analogous
#8A651B #788A1B #408A1B
triadic
#788A1B #1B788A #8A1B78
tetradic
#788A1B #1B8A65 #2D1B8A #8A1B40
square
#788A1B #1B8A65 #2D1B8A #8A1B40
split-complementary
#788A1B #1B408A #651B8A
monochromatic
#1F2407 #4B5711 #788A1B #A5BD25 #C2DB45
Accessibility & contrast
On white
3.85
#788A1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.45
#788A1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #788A1B
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##788A1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##788A1B | 1.00 | 3.85 | 5.45 | 5.45 |
| #FFFFFF | 3.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.45 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.45 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#918226
Tritanopia (blue-blind)
#808276
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #788a1b; /* rgb */ color: rgb(120, 138, 27); /* oklch */ color: oklch(59.9% 0.131 118.9);
Tailwind
colors: {
custom: {
50: '#a2ac62',
500: '#788a1b',
950: '#000000',
},
}SCSS
$custom: #788a1b; $custom-light: #a2ac62; $custom-dark: #000000;
JSON
{
"hex": "#788a1b",
"rgb": {
"r": 120,
"g": 138,
"b": 27
},
"hsl": {
"h": 69.73,
"s": 67.273,
"l": 32.353
},
"oklch": {
"l": 0.59876,
"c": 0.13089,
"h": 118.9
},
"luminance": 0.22249
}Semantic roles & 50–950 ramp
primary
#788A1B
secondary
#5845BC
accent
#3EEA5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A