#8A9831#8A9831

#8A9831 is a light, vivid yellow. Relative luminance 0.281; OKLCH L 64.8% C 0.127 H 116.7°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8A9831
RGBrgb(138, 152, 49)
HSLhsl(68, 51%, 39%)
HSVhsv(68, 68%, 60%)
CMYKcmyk(9.2%, 0%, 67.8%, 40.4%)
CIE-LABlab(59.96, -19.21, 50.27)
CIE-LCHlch(59.96, 53.82, 110.91°)
OKLaboklab(64.83% -0.0571 0.1134)
OKLCHoklch(64.83% 0.127 116.7)
XYZxyz(22.2643, 28.0818, 7.1526)
Luminance0.2808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9831 #3F3198
analogous
#987331 #8A9831 #579831
triadic
#8A9831 #318A98 #98318A
tetradic
#8A9831 #319873 #3F3198 #983157
square
#8A9831 #319873 #3F3198 #983157
split-complementary
#8A9831 #315798 #733198
monochromatic
#363B13 #606A22 #8A9831 #B1C344 #C5D272

Accessibility & contrast

On white

3.17
#8A9831 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#8A9831 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9831
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9831#FFFFFF#000000##000000
##8A98311.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29022
Deuteranopia (green-blind)
#A19139
Tritanopia (blue-blind)
#929083
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a9831;
/* rgb */ color: rgb(138, 152, 49);
/* oklch */ color: oklch(64.8% 0.127 116.7);
Tailwind
colors: {
  custom: {
    50: '#afb66f',
    500: '#8a9831',
    950: '#000000',
  },
}
SCSS
$custom: #8a9831;
$custom-light: #afb66f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9831",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 49
  },
  "hsl": {
    "h": 68.155,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.64825,
    "c": 0.12696,
    "h": 116.7
  },
  "luminance": 0.28081
}

Semantic roles & 50–950 ramp

primary
#8A9831
secondary
#766BB9
accent
#4DDB60
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9831

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

Preview Lab → · Contrast checker → · Palette generator →

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