#8A9531#8A9531

#8A9531 is a light, vivid yellow. Relative luminance 0.271; OKLCH L 64.1% C 0.123 H 115.3°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A9531
RGBrgb(138, 149, 49)
HSLhsl(67, 51%, 39%)
HSVhsv(67, 67%, 58%)
CMYKcmyk(7.4%, 0%, 67.1%, 41.6%)
CIE-LABlab(59.09, -17.66, 49.37)
CIE-LCHlch(59.09, 52.43, 109.68°)
OKLaboklab(64.12% -0.0528 0.1115)
OKLCHoklch(64.12% 0.123 115.3)
XYZxyz(21.7836, 27.1203, 6.9923)
Luminance0.2712 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9531 #3C3195
analogous
#956E31 #8A9531 #589531
triadic
#8A9531 #318A95 #95318A
tetradic
#8A9531 #31956E #3C3195 #953158
square
#8A9531 #31956E #3C3195 #953158
split-complementary
#8A9531 #315895 #6E3195
monochromatic
#353913 #5F6722 #8A9531 #B3C142 #C6D070

Accessibility & contrast

On white

3.27
#8A9531 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#8A9531 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9531
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9531#FFFFFF#000000##000000
##8A95311.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8E23
Deuteranopia (green-blind)
#9F8F38
Tritanopia (blue-blind)
#938D81
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a9531;
/* rgb */ color: rgb(138, 149, 49);
/* oklch */ color: oklch(64.1% 0.123 115.3);
Tailwind
colors: {
  custom: {
    50: '#afb46f',
    500: '#8a9531',
    950: '#000000',
  },
}
SCSS
$custom: #8a9531;
$custom-light: #afb46f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9531",
  "rgb": {
    "r": 138,
    "g": 149,
    "b": 49
  },
  "hsl": {
    "h": 66.6,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.64122,
    "c": 0.12336,
    "h": 115.3
  },
  "luminance": 0.2712
}

Semantic roles & 50–950 ramp

primary
#8A9531
secondary
#736AB8
accent
#4EDA5D
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9531

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

Preview Lab → · Contrast checker → · Palette generator →

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