#8D981B#8D981B

#8D981B is a light, vivid yellow. Relative luminance 0.282; OKLCH L 64.9% C 0.139 H 114.9°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8D981B
RGBrgb(141, 152, 27)
HSLhsl(65, 70%, 35%)
HSVhsv(65, 82%, 60%)
CMYKcmyk(7.2%, 0%, 82.2%, 40.4%)
CIE-LABlab(60.07, -18.98, 58.13)
CIE-LCHlch(60.07, 61.15, 108.08°)
OKLaboklab(64.93% -0.0586 0.1261)
OKLCHoklch(64.93% 0.139 114.9)
XYZxyz(22.4113, 28.1987, 5.2990)
Luminance0.2820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D981B #261B98
analogous
#98641B #8D981B #4E981B
triadic
#8D981B #1B8D98 #981B8D
tetradic
#8D981B #1B9864 #261B98 #981B4E
square
#8D981B #1B9864 #261B98 #981B4E
split-complementary
#8D981B #1B4E98 #641B98
monochromatic
#2D3009 #5D6412 #8D981B #BDCC24 #D3E04E

Accessibility & contrast

On white

3.16
#8D981B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#8D981B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D981B
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D981B#FFFFFF#000000##000000
##8D981B1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d981b;
/* rgb */ color: rgb(141, 152, 27);
/* oklch */ color: oklch(64.9% 0.139 114.9);
Tailwind
colors: {
  custom: {
    50: '#b2b665',
    500: '#8d981b',
    950: '#000000',
  },
}
SCSS
$custom: #8d981b;
$custom-light: #b2b665;
$custom-dark: #000000;
JSON
{
  "hex": "#8d981b",
  "rgb": {
    "r": 141,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 65.28,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.64927,
    "c": 0.13901,
    "h": 114.9
  },
  "luminance": 0.28198
}

Semantic roles & 50–950 ramp

primary
#8D981B
secondary
#574DC2
accent
#3BED4B
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8D981B

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

Preview Lab → · Contrast checker → · Palette generator →

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