#7F781B#7F781B

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

Color values

HEX#7F781B
RGBrgb(127, 120, 27)
HSLhsl(56, 65%, 30%)
HSVhsv(56, 79%, 50%)
CMYKcmyk(0%, 5.5%, 78.7%, 50.2%)
CIE-LABlab(49.53, -8.29, 48.25)
CIE-LCHlch(49.53, 48.96, 99.75°)
OKLaboklab(56.2% -0.0281 0.1055)
OKLCHoklch(56.2% 0.109 104.9)
XYZxyz(15.6674, 18.0247, 3.6905)
Luminance0.1802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F781B #1B227F
analogous
#7F461B #7F781B #547F1B
triadic
#7F781B #1B7F78 #781B7F
tetradic
#7F781B #1B7F46 #1B227F #7F1B54
square
#7F781B #1B7F46 #1B227F #7F1B54
split-complementary
#7F781B #1B547F #461B7F
monochromatic
#1A1906 #4D4810 #7F781B #B1A826 #D6CB3E

Accessibility & contrast

On white

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

On black

4.60
#7F781B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F781B
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F781B#FFFFFF#000000##000000
##7F781B1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#837405
Deuteranopia (green-blind)
#867822
Tritanopia (blue-blind)
#896F66
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f781b;
/* rgb */ color: rgb(127, 120, 27);
/* oklch */ color: oklch(56.2% 0.109 104.9);
Tailwind
colors: {
  custom: {
    50: '#a79e60',
    500: '#7f781b',
    950: '#000000',
  },
}
SCSS
$custom: #7f781b;
$custom-light: #a79e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f781b",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 55.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56204,
    "c": 0.10921,
    "h": 104.9
  },
  "luminance": 0.18024
}

Semantic roles & 50–950 ramp

primary
#7F781B
secondary
#434BB3
accent
#4CE840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F781B

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

Preview Lab → · Contrast checker → · Palette generator →

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