#9B8921#9B8921

#9B8921 is a light, moderate yellow. Relative luminance 0.250; OKLCH L 62.8% C 0.119 H 98.8°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9B8921
RGBrgb(155, 137, 33)
HSLhsl(51, 65%, 37%)
HSVhsv(51, 79%, 61%)
CMYKcmyk(0%, 11.6%, 78.7%, 39.2%)
CIE-LABlab(57.05, -4.46, 54.03)
CIE-LCHlch(57.05, 54.22, 94.72°)
OKLaboklab(62.82% -0.0183 0.1178)
OKLCHoklch(62.82% 0.119 98.8)
XYZxyz(22.7389, 24.9708, 5.0607)
Luminance0.2497 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8921 #21339B
analogous
#9B4C21 #9B8921 #709B21
triadic
#9B8921 #219B89 #89219B
tetradic
#9B8921 #219B4C #21339B #9B2170
square
#9B8921 #219B4C #21339B #9B2170
split-complementary
#9B8921 #21709B #4C219B
monochromatic
#36300C #695C16 #9B8921 #CDB62C #DCC95A

Accessibility & contrast

On white

3.50
#9B8921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#9B8921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8921
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8921#FFFFFF#000000##000000
##9B89211.003.505.995.99
#FFFFFF3.501.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#978509
Deuteranopia (green-blind)
#9C8C28
Tritanopia (blue-blind)
#A87E75
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9b8921;
/* rgb */ color: rgb(155, 137, 33);
/* oklch */ color: oklch(62.8% 0.119 98.8);
Tailwind
colors: {
  custom: {
    50: '#bcab65',
    500: '#9b8921',
    950: '#000000',
  },
}
SCSS
$custom: #9b8921;
$custom-light: #bcab65;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8921",
  "rgb": {
    "r": 155,
    "g": 137,
    "b": 33
  },
  "hsl": {
    "h": 51.148,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62822,
    "c": 0.11925,
    "h": 98.8
  },
  "luminance": 0.2497
}

Semantic roles & 50–950 ramp

primary
#9B8921
secondary
#5867C0
accent
#59E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8921

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

Preview Lab → · Contrast checker → · Palette generator →

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