#8A981C#8A981C

#8A981C is a light, vivid yellow. Relative luminance 0.279; OKLCH L 64.7% C 0.140 H 116.3°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A981C
RGBrgb(138, 152, 28)
HSLhsl(67, 69%, 35%)
HSVhsv(67, 82%, 60%)
CMYKcmyk(9.2%, 0%, 81.6%, 40.4%)
CIE-LABlab(59.84, -20.27, 57.56)
CIE-LCHlch(59.84, 61.02, 109.40°)
OKLaboklab(64.69% -0.0619 0.1251)
OKLCHoklch(64.69% 0.14 116.3)
XYZxyz(21.9197, 27.9439, 5.3374)
Luminance0.2794 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A981C #2A1C98
analogous
#98681C #8A981C #4C981C
triadic
#8A981C #1C8A98 #981C8A
tetradic
#8A981C #1C9868 #2A1C98 #981C4C
square
#8A981C #1C9868 #2A1C98 #981C4C
split-complementary
#8A981C #1C4C98 #681C98
monochromatic
#2C3109 #5B6412 #8A981C #B9CC26 #CFDF50

Accessibility & contrast

On white

3.19
#8A981C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#8A981C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A981C
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A981C#FFFFFF#000000##000000
##8A981C1.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#A29129
Tritanopia (blue-blind)
#938F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a981c;
/* rgb */ color: rgb(138, 152, 28);
/* oklch */ color: oklch(64.7% 0.140 116.3);
Tailwind
colors: {
  custom: {
    50: '#b0b665',
    500: '#8a981c',
    950: '#000000',
  },
}
SCSS
$custom: #8a981c;
$custom-light: #b0b665;
$custom-dark: #000000;
JSON
{
  "hex": "#8a981c",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 66.774,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.64685,
    "c": 0.13962,
    "h": 116.3
  },
  "luminance": 0.27944
}

Semantic roles & 50–950 ramp

primary
#8A981C
secondary
#5B4EC1
accent
#3CEC50
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A981C

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

Preview Lab → · Contrast checker → · Palette generator →

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