#9C8A21#9C8A21

#9C8A21 is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.120 H 98.9°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9C8A21
RGBrgb(156, 138, 33)
HSLhsl(51, 65%, 37%)
HSVhsv(51, 79%, 61%)
CMYKcmyk(0%, 11.5%, 78.8%, 38.8%)
CIE-LABlab(57.42, -4.55, 54.41)
CIE-LCHlch(57.42, 54.60, 94.78°)
OKLaboklab(63.14% -0.0186 0.1186)
OKLCHoklch(63.14% 0.12 98.9)
XYZxyz(23.0745, 25.3559, 5.1173)
Luminance0.2535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8A21 #21339C
analogous
#9C4D21 #9C8A21 #709C21
triadic
#9C8A21 #219C8A #8A219C
tetradic
#9C8A21 #219C4D #21339C #9C2170
square
#9C8A21 #219C4D #21339C #9C2170
split-complementary
#9C8A21 #21709C #4D219C
monochromatic
#37310C #695D16 #9C8A21 #CFB72C #DCC95B

Accessibility & contrast

On white

3.46
#9C8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9C8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8A21
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8A21#FFFFFF#000000##000000
##9C8A211.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c8a21;
/* rgb */ color: rgb(156, 138, 33);
/* oklch */ color: oklch(63.1% 0.120 98.9);
Tailwind
colors: {
  custom: {
    50: '#bdab66',
    500: '#9c8a21',
    950: '#000000',
  },
}
SCSS
$custom: #9c8a21;
$custom-light: #bdab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8a21",
  "rgb": {
    "r": 156,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 51.22,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63141,
    "c": 0.12004,
    "h": 98.9
  },
  "luminance": 0.25355
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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