#9C8F21#9C8F21

#9C8F21 is a light, vivid yellow. Relative luminance 0.268; OKLCH L 64.2% C 0.124 H 102.2°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9C8F21
RGBrgb(156, 143, 33)
HSLhsl(54, 65%, 37%)
HSVhsv(54, 79%, 61%)
CMYKcmyk(0%, 8.3%, 78.8%, 38.8%)
CIE-LABlab(58.81, -7.27, 55.68)
CIE-LCHlch(58.81, 56.15, 97.44°)
OKLaboklab(64.24% -0.0263 0.1213)
OKLCHoklch(64.24% 0.124 102.2)
XYZxyz(23.8084, 26.8237, 5.3620)
Luminance0.2682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8F21 #212E9C
analogous
#9C5221 #9C8F21 #6B9C21
triadic
#9C8F21 #219C8F #8F219C
tetradic
#9C8F21 #219C52 #212E9C #9C216B
square
#9C8F21 #219C52 #212E9C #9C216B
split-complementary
#9C8F21 #216B9C #52219C
monochromatic
#37320C #696116 #9C8F21 #CFBD2C #DCCF5B

Accessibility & contrast

On white

3.30
#9C8F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#9C8F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8F21
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8F21#FFFFFF#000000##000000
##9C8F211.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A05
Deuteranopia (green-blind)
#A19029
Tritanopia (blue-blind)
#A8847A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8f21;
/* rgb */ color: rgb(156, 143, 33);
/* oklch */ color: oklch(64.2% 0.124 102.2);
Tailwind
colors: {
  custom: {
    50: '#bdaf66',
    500: '#9c8f21',
    950: '#000000',
  },
}
SCSS
$custom: #9c8f21;
$custom-light: #bdaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8f21",
  "rgb": {
    "r": 156,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 53.659,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.64244,
    "c": 0.12412,
    "h": 102.2
  },
  "luminance": 0.26823
}

Semantic roles & 50–950 ramp

primary
#9C8F21
secondary
#5863C1
accent
#52E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8F21

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

Preview Lab → · Contrast checker → · Palette generator →

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