#8A981F#8A981F

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

Color values

HEX#8A981F
RGBrgb(138, 152, 31)
HSLhsl(67, 66%, 36%)
HSVhsv(67, 80%, 60%)
CMYKcmyk(9.2%, 0%, 79.6%, 40.4%)
CIE-LABlab(59.85, -20.15, 56.69)
CIE-LCHlch(59.85, 60.16, 109.57°)
OKLaboklab(64.7% -0.0614 0.1238)
OKLCHoklch(64.7% 0.138 116.4)
XYZxyz(21.9574, 27.9590, 5.5360)
Luminance0.2796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A981F #2D1F98
analogous
#98691F #8A981F #4D981F
triadic
#8A981F #1F8A98 #981F8A
tetradic
#8A981F #1F9869 #2D1F98 #981F4D
square
#8A981F #1F9869 #2D1F98 #981F4D
split-complementary
#8A981F #1F4D98 #691F98
monochromatic
#2E320A #5C6515 #8A981F #B8CB29 #CDDC55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #8a981f;
/* rgb */ color: rgb(138, 152, 31);
/* oklch */ color: oklch(64.7% 0.138 116.4);
Tailwind
colors: {
  custom: {
    50: '#b0b666',
    500: '#8a981f',
    950: '#000000',
  },
}
SCSS
$custom: #8a981f;
$custom-light: #b0b666;
$custom-dark: #000000;
JSON
{
  "hex": "#8a981f",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 66.942,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.64701,
    "c": 0.13818,
    "h": 116.4
  },
  "luminance": 0.27959
}

Semantic roles & 50–950 ramp

primary
#8A981F
secondary
#6053C0
accent
#3FE952
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A981F

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

Preview Lab → · Contrast checker → · Palette generator →

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