#7F781F#7F781F

#7F781F 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#7F781F
RGBrgb(127, 120, 31)
HSLhsl(56, 61%, 31%)
HSVhsv(56, 76%, 50%)
CMYKcmyk(0%, 5.5%, 75.6%, 50.2%)
CIE-LABlab(49.55, -8.10, 46.80)
CIE-LCHlch(49.55, 47.50, 99.82°)
OKLaboklab(56.23% -0.0272 0.1033)
OKLCHoklch(56.23% 0.107 104.8)
XYZxyz(15.7169, 18.0445, 3.9511)
Luminance0.1804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F781F #1F267F
analogous
#7F481F #7F781F #567F1F
triadic
#7F781F #1F7F78 #781F7F
tetradic
#7F781F #1F7F48 #1F267F #7F1F56
square
#7F781F #1F7F48 #1F267F #7F1F56
split-complementary
#7F781F #1F567F #481F7F
monochromatic
#1D1B07 #4E4A13 #7F781F #B0A62B #D2C846

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F781F#FFFFFF#000000##000000
##7F781F1.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)
#83740E
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#896F67
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f781f;
/* rgb */ color: rgb(127, 120, 31);
/* oklch */ color: oklch(56.2% 0.107 104.8);
Tailwind
colors: {
  custom: {
    50: '#a79e62',
    500: '#7f781f',
    950: '#000000',
  },
}
SCSS
$custom: #7f781f;
$custom-light: #a79e62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f781f",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 55.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56231,
    "c": 0.10678,
    "h": 104.8
  },
  "luminance": 0.18044
}

Semantic roles & 50–950 ramp

primary
#7F781F
secondary
#4850B2
accent
#50E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F781F

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

Preview Lab → · Contrast checker → · Palette generator →

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