#8D981C#8D981C

#8D981C 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#8D981C
RGBrgb(141, 152, 28)
HSLhsl(65, 69%, 35%)
HSVhsv(65, 82%, 60%)
CMYKcmyk(7.2%, 0%, 81.6%, 40.4%)
CIE-LABlab(60.07, -18.95, 57.86)
CIE-LCHlch(60.07, 60.88, 108.13°)
OKLaboklab(64.93% -0.0584 0.1257)
OKLCHoklch(64.93% 0.139 114.9)
XYZxyz(22.4230, 28.2034, 5.3610)
Luminance0.2820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D981C #271C98
analogous
#98651C #8D981C #4F981C
triadic
#8D981C #1C8D98 #981C8D
tetradic
#8D981C #1C9865 #271C98 #981C4F
square
#8D981C #1C9865 #271C98 #981C4F
split-complementary
#8D981C #1C4F98 #651C98
monochromatic
#2D3109 #5D6412 #8D981C #BDCC26 #D2DF50

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D981C#FFFFFF#000000##000000
##8D981C1.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)
#A39000
Deuteranopia (green-blind)
#A39228
Tritanopia (blue-blind)
#978F82
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8d981c;
/* rgb */ color: rgb(141, 152, 28);
/* oklch */ color: oklch(64.9% 0.139 114.9);
Tailwind
colors: {
  custom: {
    50: '#b2b665',
    500: '#8d981c',
    950: '#000000',
  },
}
SCSS
$custom: #8d981c;
$custom-light: #b2b665;
$custom-dark: #000000;
JSON
{
  "hex": "#8d981c",
  "rgb": {
    "r": 141,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 65.323,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.64932,
    "c": 0.13857,
    "h": 114.9
  },
  "luminance": 0.28203
}

Semantic roles & 50–950 ramp

primary
#8D981C
secondary
#594EC1
accent
#3CEC4C
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8D981C

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

Preview Lab → · Contrast checker → · Palette generator →

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