#7C7F12#7C7F12
#7C7F12 is a mid, vivid yellow. Relative luminance 0.195; OKLCH L 57.5% C 0.121 H 111.4°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #7C7F12 |
|---|---|
| RGB | rgb(124, 127, 18) |
| HSL | hsl(62, 75%, 28%) |
| HSV | hsv(62, 86%, 50%) |
| CMYK | cmyk(2.4%, 0%, 85.8%, 50.2%) |
| CIE-LAB | lab(51.28, -13.84, 52.44) |
| CIE-LCH | lch(51.28, 54.23, 104.79°) |
| OKLab | oklab(57.52% -0.0442 0.1129) |
| OKLCH | oklch(57.52% 0.121 111.4) |
| XYZ | xyz(16.0113, 19.5079, 3.4941) |
| Luminance | 0.1951 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 1.70
Shit Green
#758000
ΔE00 2.22
Poop Green
#6F7C00
ΔE00 3.29
Swamp Green
#748500
ΔE00 3.84
Murky Green
#6C7A0E
ΔE00 4.19
Olive (survey)
#6E750E
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C7F12 #15127F
analogous
#7F4B12 #7C7F12 #457F12
triadic
#7C7F12 #127C7F #7F127C
tetradic
#7C7F12 #127F4B #15127F #7F1245
square
#7C7F12 #127F4B #15127F #7F1245
split-complementary
#7C7F12 #12457F #4B127F
monochromatic
#1A1B04 #48490A #7C7F12 #B0B51A #DCE12B
Accessibility & contrast
On white
4.28
#7C7F12 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.90
#7C7F12 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C7F12
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C7F12 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C7F12 | 1.00 | 4.28 | 4.90 | 4.90 |
| #FFFFFF | 4.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7B1D
Tritanopia (blue-blind)
#85766C
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #7c7f12; /* rgb */ color: rgb(124, 127, 18); /* oklch */ color: oklch(57.5% 0.121 111.4);
Tailwind
colors: {
custom: {
50: '#a5a35d',
500: '#7c7f12',
950: '#000000',
},
}SCSS
$custom: #7c7f12; $custom-light: #a5a35d; $custom-dark: #000000;
JSON
{
"hex": "#7c7f12",
"rgb": {
"r": 124,
"g": 127,
"b": 18
},
"hsl": {
"h": 61.651,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.57523,
"c": 0.12124,
"h": 111.4
},
"luminance": 0.19508
}Semantic roles & 50–950 ramp
primary
#7C7F12
secondary
#3C38B5
accent
#36F23B
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79