#9C8F20#9C8F20

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

Color values

HEX#9C8F20
RGBrgb(156, 143, 32)
HSLhsl(54, 66%, 37%)
HSVhsv(54, 79%, 61%)
CMYKcmyk(0%, 8.3%, 79.5%, 38.8%)
CIE-LABlab(58.81, -7.31, 56.00)
CIE-LCHlch(58.81, 56.48, 97.44°)
OKLaboklab(64.24% -0.0265 0.1218)
OKLCHoklch(64.24% 0.125 102.3)
XYZxyz(23.7946, 26.8182, 5.2893)
Luminance0.2682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8F20 #202D9C
analogous
#9C5120 #9C8F20 #6B9C20
triadic
#9C8F20 #209C8F #8F209C
tetradic
#9C8F20 #209C51 #202D9C #9C206B
square
#9C8F20 #209C51 #202D9C #9C206B
split-complementary
#9C8F20 #206B9C #51209C
monochromatic
#36320B #696016 #9C8F20 #CFBE2A #DDCF59

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C8F20#FFFFFF#000000##000000
##9C8F201.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)
#9D8A02
Deuteranopia (green-blind)
#A19029
Tritanopia (blue-blind)
#A8847A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8f20;
/* rgb */ color: rgb(156, 143, 32);
/* oklch */ color: oklch(64.2% 0.125 102.3);
Tailwind
colors: {
  custom: {
    50: '#bdaf66',
    500: '#9c8f20',
    950: '#000000',
  },
}
SCSS
$custom: #9c8f20;
$custom-light: #bdaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8f20",
  "rgb": {
    "r": 156,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 53.71,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.64239,
    "c": 0.12464,
    "h": 102.3
  },
  "luminance": 0.26817
}

Semantic roles & 50–950 ramp

primary
#9C8F20
secondary
#5762C1
accent
#51E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8F20

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

Preview Lab → · Contrast checker → · Palette generator →

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