#7F781D#7F781D

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

Color values

HEX#7F781D
RGBrgb(127, 120, 29)
HSLhsl(56, 63%, 31%)
HSVhsv(56, 77%, 50%)
CMYKcmyk(0%, 5.5%, 77.2%, 50.2%)
CIE-LABlab(49.54, -8.20, 47.54)
CIE-LCHlch(49.54, 48.24, 99.79°)
OKLaboklab(56.22% -0.0277 0.1044)
OKLCHoklch(56.22% 0.108 104.9)
XYZxyz(15.6913, 18.0343, 3.8166)
Luminance0.1803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F781D #1D247F
analogous
#7F471D #7F781D #557F1D
triadic
#7F781D #1D7F78 #781D7F
tetradic
#7F781D #1D7F47 #1D247F #7F1D55
square
#7F781D #1D7F47 #1D247F #7F1D55
split-complementary
#7F781D #1D557F #471D7F
monochromatic
#1B1A06 #4D4912 #7F781D #B1A728 #D4CA42

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F781D#FFFFFF#000000##000000
##7F781D1.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)
#83740A
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#896F67
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f781d;
/* rgb */ color: rgb(127, 120, 29);
/* oklch */ color: oklch(56.2% 0.108 104.9);
Tailwind
colors: {
  custom: {
    50: '#a79e61',
    500: '#7f781d',
    950: '#000000',
  },
}
SCSS
$custom: #7f781d;
$custom-light: #a79e61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f781d",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 55.714,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56217,
    "c": 0.10803,
    "h": 104.9
  },
  "luminance": 0.18034
}

Semantic roles & 50–950 ramp

primary
#7F781D
secondary
#454DB2
accent
#4EE642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F781D

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

Preview Lab → · Contrast checker → · Palette generator →

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