#9C8E31#9C8E31

#9C8E31 is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.1% C 0.113 H 100.6°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#9C8E31
RGBrgb(156, 142, 49)
HSLhsl(52, 52%, 40%)
HSVhsv(52, 69%, 61%)
CMYKcmyk(0%, 9%, 68.6%, 38.8%)
CIE-LABlab(58.64, -5.95, 49.39)
CIE-LCHlch(58.64, 49.75, 96.87°)
OKLaboklab(64.14% -0.0209 0.111)
OKLCHoklch(64.14% 0.113 100.6)
XYZxyz(23.9387, 26.6367, 6.7856)
Luminance0.2664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8E31 #313F9C
analogous
#9C5931 #9C8E31 #749C31
triadic
#9C8E31 #319C8E #8E319C
tetradic
#9C8E31 #319C59 #313F9C #9C3174
square
#9C8E31 #319C59 #313F9C #9C3174
split-complementary
#9C8E31 #31749C #59319C
monochromatic
#3F3914 #6D6422 #9C8E31 #C5B445 #D3C774

Accessibility & contrast

On white

3.32
#9C8E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#9C8E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8E31
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8E31#FFFFFF#000000##000000
##9C8E311.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8A24
Deuteranopia (green-blind)
#9F8F36
Tritanopia (blue-blind)
#A8847B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8e31;
/* rgb */ color: rgb(156, 142, 49);
/* oklch */ color: oklch(64.1% 0.113 100.6);
Tailwind
colors: {
  custom: {
    50: '#bcae6e',
    500: '#9c8e31',
    950: '#000000',
  },
}
SCSS
$custom: #9c8e31;
$custom-light: #bcae6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8e31",
  "rgb": {
    "r": 156,
    "g": 142,
    "b": 49
  },
  "hsl": {
    "h": 52.15,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.64139,
    "c": 0.11296,
    "h": 100.6
  },
  "luminance": 0.26636
}

Semantic roles & 50–950 ramp

primary
#9C8E31
secondary
#6D78BB
accent
#5FDC4C
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8E31

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

Preview Lab → · Contrast checker → · Palette generator →

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