#9C8D21#9C8D21

#9C8D21 is a light, vivid yellow. Relative luminance 0.262; OKLCH L 63.8% C 0.122 H 100.9°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#9C8D21
RGBrgb(156, 141, 33)
HSLhsl(53, 65%, 37%)
HSVhsv(53, 79%, 61%)
CMYKcmyk(0%, 9.6%, 78.8%, 38.8%)
CIE-LABlab(58.25, -6.19, 55.17)
CIE-LCHlch(58.25, 55.52, 96.40°)
OKLaboklab(63.8% -0.0232 0.1202)
OKLCHoklch(63.8% 0.122 100.9)
XYZxyz(23.5108, 26.2286, 5.2628)
Luminance0.2623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D21 #21309C
analogous
#9C5021 #9C8D21 #6E9C21
triadic
#9C8D21 #219C8D #8D219C
tetradic
#9C8D21 #219C50 #21309C #9C216E
square
#9C8D21 #219C50 #21309C #9C216E
split-complementary
#9C8D21 #216E9C #50219C
monochromatic
#37320C #695F16 #9C8D21 #CFBB2C #DCCD5B

Accessibility & contrast

On white

3.36
#9C8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#9C8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8D21
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8D21#FFFFFF#000000##000000
##9C8D211.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c8d21;
/* rgb */ color: rgb(156, 141, 33);
/* oklch */ color: oklch(63.8% 0.122 100.9);
Tailwind
colors: {
  custom: {
    50: '#bdae66',
    500: '#9c8d21',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d21;
$custom-light: #bdae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d21",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 52.683,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63802,
    "c": 0.12244,
    "h": 100.9
  },
  "luminance": 0.26227
}

Semantic roles & 50–950 ramp

primary
#9C8D21
secondary
#5865C1
accent
#54E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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