#7F8628#7F8628
#7F8628 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.6% C 0.116 H 113.6°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #7F8628 |
|---|---|
| RGB | rgb(127, 134, 40) |
| HSL | hsl(64, 54%, 34%) |
| HSV | hsv(64, 70%, 53%) |
| CMYK | cmyk(5.2%, 0%, 70.1%, 47.5%) |
| CIE-LAB | lab(53.72, -15.22, 47.34) |
| CIE-LCH | lch(53.72, 49.72, 107.82°) |
| OKLab | oklab(59.58% -0.0462 0.106) |
| OKLCH | oklch(59.58% 0.116 113.6) |
| XYZ | xyz(17.6610, 21.7158, 5.2683) |
| Luminance | 0.2172 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Swamp Green
#748500
ΔE00 3.64
Shit Green
#758000
ΔE00 3.73
Olive
#808000
ΔE00 4.16
Poop Green
#6F7C00
ΔE00 5.01
Drab
#828344
ΔE00 5.06
Khaki Green
#728639
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F8628 #2F2886
analogous
#865E28 #7F8628 #508628
triadic
#7F8628 #287F86 #86287F
tetradic
#7F8628 #28865E #2F2886 #862850
square
#7F8628 #28865E #2F2886 #862850
split-complementary
#7F8628 #285086 #5E2886
monochromatic
#26280C #52571A #7F8628 #ACB536 #C5CE5B
Accessibility & contrast
On white
3.93
#7F8628 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.34
#7F8628 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F8628
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F8628 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F8628 | 1.00 | 3.93 | 5.34 | 5.34 |
| #FFFFFF | 3.93 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F1A
Deuteranopia (green-blind)
#90812F
Tritanopia (blue-blind)
#887E73
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #7f8628; /* rgb */ color: rgb(127, 134, 40); /* oklch */ color: oklch(59.6% 0.116 113.6);
Tailwind
colors: {
custom: {
50: '#a7a968',
500: '#7f8628',
950: '#000000',
},
}SCSS
$custom: #7f8628; $custom-light: #a7a968; $custom-dark: #000000;
JSON
{
"hex": "#7f8628",
"rgb": {
"r": 127,
"g": 134,
"b": 40
},
"hsl": {
"h": 64.468,
"s": 54.023,
"l": 34.118
},
"oklch": {
"l": 0.59584,
"c": 0.11568,
"h": 113.6
},
"luminance": 0.21715
}Semantic roles & 50–950 ramp
primary
#7F8628
secondary
#5E57B3
accent
#4ADD55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A