#9C8A23#9C8A23

#9C8A23 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.119 H 98.8°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9C8A23
RGBrgb(156, 138, 35)
HSLhsl(51, 63%, 37%)
HSVhsv(51, 78%, 61%)
CMYKcmyk(0%, 11.5%, 77.6%, 38.8%)
CIE-LABlab(57.43, -4.47, 53.72)
CIE-LCHlch(57.43, 53.91, 94.76°)
OKLaboklab(63.15% -0.0182 0.1175)
OKLCHoklch(63.15% 0.119 98.8)
XYZxyz(23.1033, 25.3674, 5.2693)
Luminance0.2537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8A23 #23359C
analogous
#9C4D23 #9C8A23 #729C23
triadic
#9C8A23 #239C8A #8A239C
tetradic
#9C8A23 #239C4D #23359C #9C2372
square
#9C8A23 #239C4D #23359C #9C2372
split-complementary
#9C8A23 #23729C #4D239C
monochromatic
#38320D #6A5E18 #9C8A23 #CEB62E #DBC85E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C8A23#FFFFFF#000000##000000
##9C8A231.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)
#98860D
Deuteranopia (green-blind)
#9D8D2A
Tritanopia (blue-blind)
#A97F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9c8a23;
/* rgb */ color: rgb(156, 138, 35);
/* oklch */ color: oklch(63.2% 0.119 98.8);
Tailwind
colors: {
  custom: {
    50: '#bdab67',
    500: '#9c8a23',
    950: '#000000',
  },
}
SCSS
$custom: #9c8a23;
$custom-light: #bdab67;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8a23",
  "rgb": {
    "r": 156,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 51.074,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63153,
    "c": 0.11893,
    "h": 98.8
  },
  "luminance": 0.25366
}

Semantic roles & 50–950 ramp

primary
#9C8A23
secondary
#5B6AC0
accent
#5AE641
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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