#8E981B#8E981B

#8E981B is a light, vivid yellow. Relative luminance 0.283; OKLCH L 65.0% C 0.139 H 114.5°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8E981B
RGBrgb(142, 152, 27)
HSLhsl(65, 70%, 35%)
HSVhsv(65, 82%, 60%)
CMYKcmyk(6.6%, 0%, 82.2%, 40.4%)
CIE-LABlab(60.15, -18.54, 58.23)
CIE-LCHlch(60.15, 61.11, 107.66°)
OKLaboklab(65.01% -0.0574 0.1262)
OKLCHoklch(65.01% 0.139 114.5)
XYZxyz(22.5821, 28.2868, 5.3070)
Luminance0.2829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E981B #251B98
analogous
#98631B #8E981B #4F981B
triadic
#8E981B #1B8E98 #981B8E
tetradic
#8E981B #1B9863 #251B98 #981B4F
square
#8E981B #1B9863 #251B98 #981B4F
split-complementary
#8E981B #1B4F98 #631B98
monochromatic
#2D3009 #5D6412 #8E981B #BFCC24 #D4E04E

Accessibility & contrast

On white

3.15
#8E981B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#8E981B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E981B
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E981B#FFFFFF#000000##000000
##8E981B1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49000
Deuteranopia (green-blind)
#A39228
Tritanopia (blue-blind)
#988F82
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8e981b;
/* rgb */ color: rgb(142, 152, 27);
/* oklch */ color: oklch(65.0% 0.139 114.5);
Tailwind
colors: {
  custom: {
    50: '#b3b665',
    500: '#8e981b',
    950: '#000000',
  },
}
SCSS
$custom: #8e981b;
$custom-light: #b3b665;
$custom-dark: #000000;
JSON
{
  "hex": "#8e981b",
  "rgb": {
    "r": 142,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 64.8,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.6501,
    "c": 0.13869,
    "h": 114.5
  },
  "luminance": 0.28286
}

Semantic roles & 50–950 ramp

primary
#8E981B
secondary
#564DC2
accent
#3BED49
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8E981B

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

Preview Lab → · Contrast checker → · Palette generator →

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