#9C8B21#9C8B21

#9C8B21 is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.121 H 99.6°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9C8B21
RGBrgb(156, 139, 33)
HSLhsl(52, 65%, 37%)
HSVhsv(52, 79%, 61%)
CMYKcmyk(0%, 10.9%, 78.8%, 38.8%)
CIE-LABlab(57.70, -5.10, 54.66)
CIE-LCHlch(57.70, 54.90, 95.33°)
OKLaboklab(63.36% -0.0202 0.1191)
OKLCHoklch(63.36% 0.121 99.6)
XYZxyz(23.2186, 25.6441, 5.1654)
Luminance0.2564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8B21 #21329C
analogous
#9C4D21 #9C8B21 #709C21
triadic
#9C8B21 #219C8B #8B219C
tetradic
#9C8B21 #219C4D #21329C #9C2170
square
#9C8B21 #219C4D #21329C #9C2170
split-complementary
#9C8B21 #21709C #4D219C
monochromatic
#37310C #695E16 #9C8B21 #CFB82C #DCCA5B

Accessibility & contrast

On white

3.43
#9C8B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9C8B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8B21
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8B21#FFFFFF#000000##000000
##9C8B211.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998708
Deuteranopia (green-blind)
#9E8D29
Tritanopia (blue-blind)
#A98077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9c8b21;
/* rgb */ color: rgb(156, 139, 33);
/* oklch */ color: oklch(63.4% 0.121 99.6);
Tailwind
colors: {
  custom: {
    50: '#bdac66',
    500: '#9c8b21',
    950: '#000000',
  },
}
SCSS
$custom: #9c8b21;
$custom-light: #bdac66;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8b21",
  "rgb": {
    "r": 156,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 51.707,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63361,
    "c": 0.12083,
    "h": 99.6
  },
  "luminance": 0.25643
}

Semantic roles & 50–950 ramp

primary
#9C8B21
secondary
#5867C1
accent
#57E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8B21

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

Preview Lab → · Contrast checker → · Palette generator →

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