#9B8D21#9B8D21

#9B8D21 is a light, vivid yellow. Relative luminance 0.261; OKLCH L 63.7% C 0.122 H 101.5°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9B8D21
RGBrgb(155, 141, 33)
HSLhsl(53, 65%, 37%)
HSVhsv(53, 79%, 61%)
CMYKcmyk(0%, 9%, 78.7%, 39.2%)
CIE-LABlab(58.16, -6.65, 55.05)
CIE-LCHlch(58.16, 55.45, 96.88°)
OKLaboklab(63.71% -0.0245 0.12)
OKLCHoklch(63.71% 0.122 101.5)
XYZxyz(23.3181, 26.1292, 5.2537)
Luminance0.2613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8D21 #212F9B
analogous
#9B5021 #9B8D21 #6C9B21
triadic
#9B8D21 #219B8D #8D219B
tetradic
#9B8D21 #219B50 #212F9B #9B216C
square
#9B8D21 #219B50 #212F9B #9B216C
split-complementary
#9B8D21 #216C9B #50219B
monochromatic
#36310C #695F16 #9B8D21 #CDBB2C #DCCD5A

Accessibility & contrast

On white

3.37
#9B8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#9B8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8D21
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8D21#FFFFFF#000000##000000
##9B8D211.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8906
Deuteranopia (green-blind)
#9F8E29
Tritanopia (blue-blind)
#A78279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9b8d21;
/* rgb */ color: rgb(155, 141, 33);
/* oklch */ color: oklch(63.7% 0.122 101.5);
Tailwind
colors: {
  custom: {
    50: '#bcae66',
    500: '#9b8d21',
    950: '#000000',
  },
}
SCSS
$custom: #9b8d21;
$custom-light: #bcae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8d21",
  "rgb": {
    "r": 155,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 53.115,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63705,
    "c": 0.12247,
    "h": 101.5
  },
  "luminance": 0.26128
}

Semantic roles & 50–950 ramp

primary
#9B8D21
secondary
#5864C0
accent
#53E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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