#8E781B#8E781B

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

Color values

HEX#8E781B
RGBrgb(142, 120, 27)
HSLhsl(49, 68%, 33%)
HSVhsv(49, 81%, 56%)
CMYKcmyk(0%, 15.5%, 81%, 44.3%)
CIE-LABlab(50.99, -1.26, 50.13)
CIE-LCHlch(50.99, 50.15, 91.44°)
OKLaboklab(57.72% -0.0091 0.1088)
OKLCHoklch(57.72% 0.109 94.8)
XYZxyz(18.0706, 19.2639, 3.8032)
Luminance0.1926 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E781B #1B318E
analogous
#8E3F1B #8E781B #6A8E1B
triadic
#8E781B #1B8E78 #781B8E
tetradic
#8E781B #1B8E3F #1B318E #8E1B6A
square
#8E781B #1B8E3F #1B318E #8E1B6A
split-complementary
#8E781B #1B6A8E #3F1B8E
monochromatic
#272107 #5B4D11 #8E781B #C1A325 #DCC047

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E781B#FFFFFF#000000##000000
##8E781B1.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)
#867605
Deuteranopia (green-blind)
#8B7C21
Tritanopia (blue-blind)
#9A6E67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8e781b;
/* rgb */ color: rgb(142, 120, 27);
/* oklch */ color: oklch(57.7% 0.109 94.8);
Tailwind
colors: {
  custom: {
    50: '#b39e60',
    500: '#8e781b',
    950: '#000000',
  },
}
SCSS
$custom: #8e781b;
$custom-light: #b39e60;
$custom-dark: #000000;
JSON
{
  "hex": "#8e781b",
  "rgb": {
    "r": 142,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 48.522,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57716,
    "c": 0.10921,
    "h": 94.8
  },
  "luminance": 0.19263
}

Semantic roles & 50–950 ramp

primary
#8E781B
secondary
#475EBE
accent
#5EEB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E781B

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

Preview Lab → · Contrast checker → · Palette generator →

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