#8E781A#8E781A

#8E781A is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.7% C 0.110 H 94.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8E781A
RGBrgb(142, 120, 26)
HSLhsl(49, 69%, 33%)
HSVhsv(49, 82%, 56%)
CMYKcmyk(0%, 15.5%, 81.7%, 44.3%)
CIE-LABlab(50.99, -1.30, 50.47)
CIE-LCHlch(50.99, 50.48, 91.48°)
OKLaboklab(57.71% -0.0093 0.1093)
OKLCHoklch(57.71% 0.11 94.9)
XYZxyz(18.0593, 19.2594, 3.7433)
Luminance0.1926 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E781A #1A308E
analogous
#8E3E1A #8E781A #6A8E1A
triadic
#8E781A #1A8E78 #781A8E
tetradic
#8E781A #1A8E3E #1A308E #8E1A6A
square
#8E781A #1A8E3E #1A308E #8E1A6A
split-complementary
#8E781A #1A6A8E #3E1A8E
monochromatic
#272107 #5A4C11 #8E781A #C2A423 #DDC045

Accessibility & contrast

On white

4.33
#8E781A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#8E781A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E781A
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E781A#FFFFFF#000000##000000
##8E781A1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#867603
Deuteranopia (green-blind)
#8B7C21
Tritanopia (blue-blind)
#9A6E67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8e781a;
/* rgb */ color: rgb(142, 120, 26);
/* oklch */ color: oklch(57.7% 0.110 94.9);
Tailwind
colors: {
  custom: {
    50: '#b39e60',
    500: '#8e781a',
    950: '#000000',
  },
}
SCSS
$custom: #8e781a;
$custom-light: #b39e60;
$custom-dark: #000000;
JSON
{
  "hex": "#8e781a",
  "rgb": {
    "r": 142,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 48.621,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57711,
    "c": 0.10973,
    "h": 94.9
  },
  "luminance": 0.19258
}

Semantic roles & 50–950 ramp

primary
#8E781A
secondary
#455CBE
accent
#5DEC3C
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E781A

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

Preview Lab → · Contrast checker → · Palette generator →

#8E781A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva