#8A9521#8A9521

#8A9521 is a light, vivid yellow. Relative luminance 0.270; OKLCH L 64.0% C 0.134 H 115.1°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A9521
RGBrgb(138, 149, 33)
HSLhsl(66, 64%, 36%)
HSVhsv(66, 78%, 58%)
CMYKcmyk(7.4%, 0%, 77.9%, 41.6%)
CIE-LABlab(58.98, -18.53, 55.26)
CIE-LCHlch(58.98, 58.29, 108.54°)
OKLaboklab(64.01% -0.0567 0.1212)
OKLCHoklch(64.01% 0.134 115.1)
XYZxyz(21.5038, 27.0083, 5.5189)
Luminance0.2701 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9521 #2C2195
analogous
#956621 #8A9521 #509521
triadic
#8A9521 #218A95 #95218A
tetradic
#8A9521 #219566 #2C2195 #952150
square
#8A9521 #219566 #2C2195 #952150
split-complementary
#8A9521 #215095 #662195
monochromatic
#2D310B #5C6316 #8A9521 #B8C72C #CDDA57

Accessibility & contrast

On white

3.28
#8A9521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#8A9521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9521
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9521#FFFFFF#000000##000000
##8A95211.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D02
Deuteranopia (green-blind)
#9F8F2B
Tritanopia (blue-blind)
#938C7F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a9521;
/* rgb */ color: rgb(138, 149, 33);
/* oklch */ color: oklch(64.0% 0.134 115.1);
Tailwind
colors: {
  custom: {
    50: '#afb467',
    500: '#8a9521',
    950: '#000000',
  },
}
SCSS
$custom: #8a9521;
$custom-light: #afb467;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9521",
  "rgb": {
    "r": 138,
    "g": 149,
    "b": 33
  },
  "hsl": {
    "h": 65.69,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.64006,
    "c": 0.13377,
    "h": 115.1
  },
  "luminance": 0.27008
}

Semantic roles & 50–950 ramp

primary
#8A9521
secondary
#5E54BE
accent
#41E751
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9521

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

Preview Lab → · Contrast checker → · Palette generator →

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