#9C8C21#9C8C21

#9C8C21 is a light, vivid yellow. Relative luminance 0.259; OKLCH L 63.6% C 0.122 H 100.3°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9C8C21
RGBrgb(156, 140, 33)
HSLhsl(52, 65%, 37%)
HSVhsv(52, 79%, 61%)
CMYKcmyk(0%, 10.3%, 78.8%, 38.8%)
CIE-LABlab(57.98, -5.65, 54.92)
CIE-LCHlch(57.98, 55.21, 95.87°)
OKLaboklab(63.58% -0.0217 0.1197)
OKLCHoklch(63.58% 0.122 100.3)
XYZxyz(23.3641, 25.9350, 5.2138)
Luminance0.2593 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8C21 #21319C
analogous
#9C4F21 #9C8C21 #6F9C21
triadic
#9C8C21 #219C8C #8C219C
tetradic
#9C8C21 #219C4F #21319C #9C216F
square
#9C8C21 #219C4F #21319C #9C216F
split-complementary
#9C8C21 #216F9C #4F219C
monochromatic
#37310C #695F16 #9C8C21 #CFB92C #DCCC5B

Accessibility & contrast

On white

3.39
#9C8C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#9C8C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8C21
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8C21#FFFFFF#000000##000000
##9C8C211.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8807
Deuteranopia (green-blind)
#9F8E29
Tritanopia (blue-blind)
#A98178
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9c8c21;
/* rgb */ color: rgb(156, 140, 33);
/* oklch */ color: oklch(63.6% 0.122 100.3);
Tailwind
colors: {
  custom: {
    50: '#bdad66',
    500: '#9c8c21',
    950: '#000000',
  },
}
SCSS
$custom: #9c8c21;
$custom-light: #bdad66;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8c21",
  "rgb": {
    "r": 156,
    "g": 140,
    "b": 33
  },
  "hsl": {
    "h": 52.195,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63581,
    "c": 0.12163,
    "h": 100.3
  },
  "luminance": 0.25934
}

Semantic roles & 50–950 ramp

primary
#9C8C21
secondary
#5866C1
accent
#56E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8C21

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

Preview Lab → · Contrast checker → · Palette generator →

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