#7C781F#7C781F
#7C781F is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 55.9% C 0.107 H 106.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).
Color values
| HEX | #7C781F |
|---|---|
| RGB | rgb(124, 120, 31) |
| HSL | hsl(57, 60%, 30%) |
| HSV | hsv(57, 75%, 49%) |
| CMYK | cmyk(0%, 3.2%, 75%, 51.4%) |
| CIE-LAB | lab(49.27, -9.50, 46.44) |
| CIE-LCH | lch(49.27, 47.40, 101.56°) |
| OKLab | oklab(55.95% -0.031 0.1026) |
| OKLCH | oklch(55.95% 0.107 106.8) |
| XYZ | xyz(15.2766, 17.8175, 3.9305) |
| Luminance | 0.1782 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 3.90
Olive (survey)
#6E750E
ΔE00 3.90
Olive
#808000
ΔE00 4.17
Brown Green
#706C11
ΔE00 4.63
Browny Green
#6F6C0A
ΔE00 4.76
Poop Green
#6F7C00
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C781F #1F237C
analogous
#7C491F #7C781F #527C1F
triadic
#7C781F #1F7C78 #781F7C
tetradic
#7C781F #1F7C49 #1F237C #7C1F52
square
#7C781F #1F7C49 #1F237C #7C1F52
split-complementary
#7C781F #1F527C #491F7C
monochromatic
#1A1907 #4B4913 #7C781F #ADA72B #D0CA45
Accessibility & contrast
On white
4.60
#7C781F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.56
#7C781F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #7C781F
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C781F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C781F | 1.00 | 4.60 | 4.56 | 4.60 |
| #FFFFFF | 4.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83730F
Deuteranopia (green-blind)
#847726
Tritanopia (blue-blind)
#857067
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #7c781f; /* rgb */ color: rgb(124, 120, 31); /* oklch */ color: oklch(55.9% 0.107 106.8);
Tailwind
colors: {
custom: {
50: '#a59e62',
500: '#7c781f',
950: '#000000',
},
}SCSS
$custom: #7c781f; $custom-light: #a59e62; $custom-dark: #000000;
JSON
{
"hex": "#7c781f",
"rgb": {
"r": 124,
"g": 120,
"b": 31
},
"hsl": {
"h": 57.419,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.55945,
"c": 0.10718,
"h": 106.8
},
"luminance": 0.17817
}Semantic roles & 50–950 ramp
primary
#7C781F
secondary
#484CAF
accent
#4BE345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A