#9C8D42#9C8D42

#9C8D42 is a light, moderate yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.097 H 98.2°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9C8D42
RGBrgb(156, 141, 66)
HSLhsl(50, 41%, 44%)
HSVhsv(50, 58%, 61%)
CMYKcmyk(0%, 9.6%, 57.7%, 38.8%)
CIE-LABlab(58.52, -4.22, 41.38)
CIE-LCHlch(58.52, 41.59, 95.82°)
OKLaboklab(64.1% -0.0138 0.0964)
OKLCHoklch(64.1% 0.097 98.2)
XYZxyz(24.2194, 26.5120, 8.9948)
Luminance0.2651 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D42 #42519C
analogous
#9C6042 #9C8D42 #7E9C42
triadic
#9C8D42 #429C8D #8D429C
tetradic
#9C8D42 #429C60 #42519C #9C427E
square
#9C8D42 #429C60 #42519C #9C427E
split-complementary
#9C8D42 #427E9C #60429C
monochromatic
#463F1E #716630 #9C8D42 #BCAC60 #CEC38B

Accessibility & contrast

On white

3.33
#9C8D42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9C8D42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8D42
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8D42#FFFFFF#000000##000000
##9C8D421.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998A3B
Deuteranopia (green-blind)
#9D8F45
Tritanopia (blue-blind)
#A7847C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8d42;
/* rgb */ color: rgb(156, 141, 66);
/* oklch */ color: oklch(64.1% 0.097 98.2);
Tailwind
colors: {
  custom: {
    50: '#bbae79',
    500: '#9c8d42',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d42;
$custom-light: #bbae79;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d42",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 66
  },
  "hsl": {
    "h": 50,
    "s": 40.541,
    "l": 43.529
  },
  "oklch": {
    "l": 0.64098,
    "c": 0.09744,
    "h": 98.2
  },
  "luminance": 0.26511
}

Semantic roles & 50–950 ramp

primary
#9C8D42
secondary
#818AB9
accent
#6CD057
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9C8D42

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

Preview Lab → · Contrast checker → · Palette generator →

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