#9B8A21#9B8A21

#9B8A21 is a light, vivid yellow. Relative luminance 0.253; OKLCH L 63.0% C 0.120 H 99.5°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9B8A21
RGBrgb(155, 138, 33)
HSLhsl(52, 65%, 37%)
HSVhsv(52, 79%, 61%)
CMYKcmyk(0%, 11%, 78.7%, 39.2%)
CIE-LABlab(57.32, -5.01, 54.29)
CIE-LCHlch(57.32, 54.52, 95.27°)
OKLaboklab(63.04% -0.0199 0.1184)
OKLCHoklch(63.04% 0.12 99.5)
XYZxyz(22.8817, 25.2565, 5.1083)
Luminance0.2525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A21 #21329B
analogous
#9B4D21 #9B8A21 #6F9B21
triadic
#9B8A21 #219B8A #8A219B
tetradic
#9B8A21 #219B4D #21329B #9B216F
square
#9B8A21 #219B4D #21329B #9B216F
split-complementary
#9B8A21 #216F9B #4D219B
monochromatic
#36300C #695D16 #9B8A21 #CDB72C #DCCA5A

Accessibility & contrast

On white

3.47
#9B8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#9B8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A21
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A21#FFFFFF#000000##000000
##9B8A211.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988608
Deuteranopia (green-blind)
#9D8C29
Tritanopia (blue-blind)
#A87F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a21;
/* rgb */ color: rgb(155, 138, 33);
/* oklch */ color: oklch(63.0% 0.120 99.5);
Tailwind
colors: {
  custom: {
    50: '#bcab66',
    500: '#9b8a21',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a21;
$custom-light: #bcab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a21",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 51.639,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63042,
    "c": 0.12003,
    "h": 99.5
  },
  "luminance": 0.25255
}

Semantic roles & 50–950 ramp

primary
#9B8A21
secondary
#5866C0
accent
#57E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8A21

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

Preview Lab → · Contrast checker → · Palette generator →

#9B8A21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva