#7F781E#7F781E

#7F781E is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.107 H 104.8°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7F781E
RGBrgb(127, 120, 30)
HSLhsl(56, 62%, 31%)
HSVhsv(56, 76%, 50%)
CMYKcmyk(0%, 5.5%, 76.4%, 50.2%)
CIE-LABlab(49.54, -8.15, 47.18)
CIE-LCHlch(49.54, 47.88, 99.80°)
OKLaboklab(56.22% -0.0275 0.1038)
OKLCHoklch(56.22% 0.107 104.8)
XYZxyz(15.7039, 18.0393, 3.8828)
Luminance0.1804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F781E #1E257F
analogous
#7F471E #7F781E #557F1E
triadic
#7F781E #1E7F78 #781E7F
tetradic
#7F781E #1E7F47 #1E257F #7F1E55
square
#7F781E #1E7F47 #1E257F #7F1E55
split-complementary
#7F781E #1E557F #471E7F
monochromatic
#1C1A07 #4D4912 #7F781E #B1A72A #D3C944

Accessibility & contrast

On white

4.56
#7F781E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7F781E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F781E
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F781E#FFFFFF#000000##000000
##7F781E1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#83740C
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#896F67
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f781e;
/* rgb */ color: rgb(127, 120, 30);
/* oklch */ color: oklch(56.2% 0.107 104.8);
Tailwind
colors: {
  custom: {
    50: '#a79e61',
    500: '#7f781e',
    950: '#000000',
  },
}
SCSS
$custom: #7f781e;
$custom-light: #a79e61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f781e",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 30
  },
  "hsl": {
    "h": 55.67,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56224,
    "c": 0.10741,
    "h": 104.8
  },
  "luminance": 0.18039
}

Semantic roles & 50–950 ramp

primary
#7F781E
secondary
#474EB2
accent
#4FE543
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F781E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#7F781E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva