#7B7E12#7B7E12
#7B7E12 is a mid, vivid yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.120 H 111.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #7B7E12 |
|---|---|
| RGB | rgb(123, 126, 18) |
| HSL | hsl(62, 75%, 28%) |
| HSV | hsv(62, 86%, 49%) |
| CMYK | cmyk(2.4%, 0%, 85.7%, 50.6%) |
| CIE-LAB | lab(50.89, -13.77, 52.08) |
| CIE-LCH | lch(50.89, 53.87, 104.81°) |
| OKLab | oklab(57.2% -0.0439 0.1122) |
| OKLCH | oklch(57.2% 0.12 111.4) |
| XYZ | xyz(15.7390, 19.1768, 3.4446) |
| Luminance | 0.1918 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 1.93
Shit Green
#758000
ΔE00 2.24
Poop Green
#6F7C00
ΔE00 3.09
Murky Green
#6C7A0E
ΔE00 3.92
Swamp Green
#748500
ΔE00 4.00
Olive (survey)
#6E750E
ΔE00 4.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B7E12 #15127E
analogous
#7E4B12 #7B7E12 #457E12
triadic
#7B7E12 #127B7E #7E127B
tetradic
#7B7E12 #127E4B #15127E #7E1245
square
#7B7E12 #127E4B #15127E #7E1245
split-complementary
#7B7E12 #12457E #4B127E
monochromatic
#1A1B04 #47480A #7B7E12 #AFB41A #DBE12A
Accessibility & contrast
On white
4.34
#7B7E12 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.84
#7B7E12 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7B7E12
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B7E12 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7B7E12 | 1.00 | 4.34 | 4.84 | 4.84 |
| #FFFFFF | 4.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#897A1D
Tritanopia (blue-blind)
#84766B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #7b7e12; /* rgb */ color: rgb(123, 126, 18); /* oklch */ color: oklch(57.2% 0.120 111.4);
Tailwind
colors: {
custom: {
50: '#a5a35d',
500: '#7b7e12',
950: '#000000',
},
}SCSS
$custom: #7b7e12; $custom-light: #a5a35d; $custom-dark: #000000;
JSON
{
"hex": "#7b7e12",
"rgb": {
"r": 123,
"g": 126,
"b": 18
},
"hsl": {
"h": 61.667,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.57196,
"c": 0.12046,
"h": 111.4
},
"luminance": 0.19176
}Semantic roles & 50–950 ramp
primary
#7B7E12
secondary
#3B38B4
accent
#36F23B
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79