#8A981B#8A981B

#8A981B 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#8A981B
RGBrgb(138, 152, 27)
HSLhsl(67, 70%, 35%)
HSVhsv(67, 82%, 60%)
CMYKcmyk(9.2%, 0%, 82.2%, 40.4%)
CIE-LABlab(59.83, -20.30, 57.84)
CIE-LCHlch(59.83, 61.30, 109.34°)
OKLaboklab(64.68% -0.0621 0.1256)
OKLCHoklch(64.68% 0.14 116.3)
XYZxyz(21.9079, 27.9392, 5.2754)
Luminance0.2794 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A981B #291B98
analogous
#98671B #8A981B #4B981B
triadic
#8A981B #1B8A98 #981B8A
tetradic
#8A981B #1B9867 #291B98 #981B4B
square
#8A981B #1B9867 #291B98 #981B4B
split-complementary
#8A981B #1B4B98 #671B98
monochromatic
#2C3009 #5B6412 #8A981B #B9CC24 #CFE04E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A981B#FFFFFF#000000##000000
##8A981B1.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)
#A29128
Tritanopia (blue-blind)
#938F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a981b;
/* rgb */ color: rgb(138, 152, 27);
/* oklch */ color: oklch(64.7% 0.140 116.3);
Tailwind
colors: {
  custom: {
    50: '#b0b664',
    500: '#8a981b',
    950: '#000000',
  },
}
SCSS
$custom: #8a981b;
$custom-light: #b0b664;
$custom-dark: #000000;
JSON
{
  "hex": "#8a981b",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 66.72,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.64681,
    "c": 0.14006,
    "h": 116.3
  },
  "luminance": 0.27939
}

Semantic roles & 50–950 ramp

primary
#8A981B
secondary
#5A4DC2
accent
#3BED4F
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A981B

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

Preview Lab → · Contrast checker → · Palette generator →

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