#7C862F#7C862F
#7C862F is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.4% C 0.111 H 115.4°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #7C862F |
|---|---|
| RGB | rgb(124, 134, 47) |
| HSL | hsl(67, 48%, 35%) |
| HSV | hsv(67, 65%, 53%) |
| CMYK | cmyk(7.5%, 0%, 64.9%, 47.5%) |
| CIE-LAB | lab(53.54, -16.09, 44.07) |
| CIE-LCH | lch(53.54, 46.91, 110.06°) |
| OKLab | oklab(59.39% -0.0477 0.1004) |
| OKLCH | oklch(59.39% 0.111 115.4) |
| XYZ | xyz(17.3508, 21.5408, 5.9325) |
| Luminance | 0.2154 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki Green
#728639
ΔE00 3.62
Swamp Green
#748500
ΔE00 4.11
Shit Green
#758000
ΔE00 4.41
Drab
#828344
ΔE00 4.46
Poop Green
#6F7C00
ΔE00 5.29
Olive
#808000
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C862F #392F86
analogous
#86652F #7C862F #50862F
triadic
#7C862F #2F7C86 #862F7C
tetradic
#7C862F #2F8665 #392F86 #862F50
square
#7C862F #2F8665 #392F86 #862F50
split-complementary
#7C862F #2F5086 #652F86
monochromatic
#282B0F #52591F #7C862F #A6B33F #BEC966
Accessibility & contrast
On white
3.96
#7C862F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.31
#7C862F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C862F
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C862F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C862F | 1.00 | 3.96 | 5.31 | 5.31 |
| #FFFFFF | 3.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8F7F24
Deuteranopia (green-blind)
#8F8135
Tritanopia (blue-blind)
#847E74
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #7c862f; /* rgb */ color: rgb(124, 134, 47); /* oklch */ color: oklch(59.4% 0.111 115.4);
Tailwind
colors: {
custom: {
50: '#a4a96c',
500: '#7c862f',
950: '#000000',
},
}SCSS
$custom: #7c862f; $custom-light: #a4a96c; $custom-dark: #000000;
JSON
{
"hex": "#7c862f",
"rgb": {
"r": 124,
"g": 134,
"b": 47
},
"hsl": {
"h": 66.897,
"s": 48.066,
"l": 35.49
},
"oklch": {
"l": 0.59391,
"c": 0.11114,
"h": 115.4
},
"luminance": 0.21541
}Semantic roles & 50–950 ramp
primary
#7C862F
secondary
#6A60B0
accent
#50D860
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A