#7A731B#7A731B
#7A731B is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.6% C 0.105 H 104.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #7A731B |
|---|---|
| RGB | rgb(122, 115, 27) |
| HSL | hsl(56, 64%, 29%) |
| HSV | hsv(56, 78%, 48%) |
| CMYK | cmyk(0%, 5.7%, 77.9%, 52.2%) |
| CIE-LAB | lab(47.60, -7.85, 46.29) |
| CIE-LCH | lch(47.60, 46.95, 99.62°) |
| OKLab | oklab(54.56% -0.0266 0.1016) |
| OKLCH | oklch(54.56% 0.105 104.7) |
| XYZ | xyz(14.3552, 16.4787, 3.4613) |
| Luminance | 0.1648 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 2.56
Brown Green
#706C11
ΔE00 3.05
Browny Green
#6F6C0A
ΔE00 3.30
Olive (survey)
#6E750E
ΔE00 4.31
Brownish Green
#6A6E09
ΔE00 4.40
Olive
#808000
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A731B #1B227A
analogous
#7A441B #7A731B #527A1B
triadic
#7A731B #1B7A73 #731B7A
tetradic
#7A731B #1B7A44 #1B227A #7A1B52
square
#7A731B #1B7A44 #1B227A #7A1B52
split-complementary
#7A731B #1B527A #441B7A
monochromatic
#191806 #484410 #7A731B #ACA226 #D4C93C
Accessibility & contrast
On white
4.89
#7A731B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.30
#7A731B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A731B
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A731B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A731B | 1.00 | 4.89 | 4.30 | 4.89 |
| #FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7E6F08
Deuteranopia (green-blind)
#807322
Tritanopia (blue-blind)
#846B62
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7a731b; /* rgb */ color: rgb(122, 115, 27); /* oklch */ color: oklch(54.6% 0.105 104.7);
Tailwind
colors: {
custom: {
50: '#a49b5f',
500: '#7a731b',
950: '#000000',
},
}SCSS
$custom: #7a731b; $custom-light: #a49b5f; $custom-dark: #000000;
JSON
{
"hex": "#7a731b",
"rgb": {
"r": 122,
"g": 115,
"b": 27
},
"hsl": {
"h": 55.579,
"s": 63.758,
"l": 29.216
},
"oklch": {
"l": 0.54556,
"c": 0.105,
"h": 104.7
},
"luminance": 0.16478
}Semantic roles & 50–950 ramp
primary
#7A731B
secondary
#434BAE
accent
#4DE741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79