#787F17#787F17
#787F17 is a mid, vivid yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.120 H 113.6°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #787F17 |
|---|---|
| RGB | rgb(120, 127, 23) |
| HSL | hsl(64, 69%, 29%) |
| HSV | hsv(64, 82%, 50%) |
| CMYK | cmyk(5.5%, 0%, 81.9%, 50.2%) |
| CIE-LAB | lab(50.96, -15.51, 50.63) |
| CIE-LCH | lch(50.96, 52.95, 107.03°) |
| OKLab | oklab(57.19% -0.0482 0.1101) |
| OKLCH | oklch(57.19% 0.12 113.6) |
| XYZ | xyz(15.4903, 19.2340, 3.7070) |
| Luminance | 0.1923 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 1.65
Poop Green
#6F7C00
ΔE00 2.40
Olive
#808000
ΔE00 2.99
Murky Green
#6C7A0E
ΔE00 3.10
Swamp Green
#748500
ΔE00 3.18
Olive (survey)
#6E750E
ΔE00 3.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F17 #1E177F
analogous
#7F5217 #787F17 #447F17
triadic
#787F17 #17787F #7F1778
tetradic
#787F17 #177F52 #1E177F #7F1744
square
#787F17 #177F52 #1E177F #7F1744
split-complementary
#787F17 #17447F #52177F
monochromatic
#181A05 #474B0E #787F17 #A9B320 #CFDB36
Accessibility & contrast
On white
4.33
#787F17 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.85
#787F17 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F17
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F17 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F17 | 1.00 | 4.33 | 4.85 | 4.85 |
| #FFFFFF | 4.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#897A21
Tritanopia (blue-blind)
#81776C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787f17; /* rgb */ color: rgb(120, 127, 23); /* oklch */ color: oklch(57.2% 0.120 113.6);
Tailwind
colors: {
custom: {
50: '#a2a35f',
500: '#787f17',
950: '#000000',
},
}SCSS
$custom: #787f17; $custom-light: #a2a35f; $custom-dark: #000000;
JSON
{
"hex": "#787f17",
"rgb": {
"r": 120,
"g": 127,
"b": 23
},
"hsl": {
"h": 64.038,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.57193,
"c": 0.1202,
"h": 113.6
},
"luminance": 0.19234
}Semantic roles & 50–950 ramp
primary
#787F17
secondary
#463EB4
accent
#3CEC48
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79