#8A9B31#8A9B31

#8A9B31 is a light, vivid yellow. Relative luminance 0.291; OKLCH L 65.5% C 0.131 H 118.0°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8A9B31
RGBrgb(138, 155, 49)
HSLhsl(70, 52%, 40%)
HSVhsv(70, 68%, 61%)
CMYKcmyk(11%, 0%, 68.4%, 39.2%)
CIE-LABlab(60.84, -20.73, 51.17)
CIE-LCHlch(60.84, 55.22, 112.06°)
OKLaboklab(65.53% -0.0613 0.1153)
OKLCHoklch(65.53% 0.131 118)
XYZxyz(22.7574, 29.0679, 7.3169)
Luminance0.2907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9B31 #42319B
analogous
#9B7731 #8A9B31 #559B31
triadic
#8A9B31 #318A9B #9B318A
tetradic
#8A9B31 #319B77 #42319B #9B3155
square
#8A9B31 #319B77 #42319B #9B3155
split-complementary
#8A9B31 #31559B #77319B
monochromatic
#373E14 #616D22 #8A9B31 #B0C445 #C4D373

Accessibility & contrast

On white

3.08
#8A9B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#8A9B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9B31
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9B31#FFFFFF#000000##000000
##8A9B311.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59321
Deuteranopia (green-blind)
#A39339
Tritanopia (blue-blind)
#929386
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8a9b31;
/* rgb */ color: rgb(138, 155, 49);
/* oklch */ color: oklch(65.5% 0.131 118.0);
Tailwind
colors: {
  custom: {
    50: '#afb86f',
    500: '#8a9b31',
    950: '#000000',
  },
}
SCSS
$custom: #8a9b31;
$custom-light: #afb86f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9b31",
  "rgb": {
    "r": 138,
    "g": 155,
    "b": 49
  },
  "hsl": {
    "h": 69.623,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.65531,
    "c": 0.13061,
    "h": 118
  },
  "luminance": 0.29068
}

Semantic roles & 50–950 ramp

primary
#8A9B31
secondary
#796DBB
accent
#4CDB63
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9B31

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

Preview Lab → · Contrast checker → · Palette generator →

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