#9C842D#9C842D

#9C842D is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.9% C 0.108 H 93.3°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#9C842D
RGBrgb(156, 132, 45)
HSLhsl(47, 55%, 39%)
HSVhsv(47, 71%, 61%)
CMYKcmyk(0%, 15.4%, 71.2%, 38.8%)
CIE-LABlab(55.85, -0.68, 48.25)
CIE-LCHlch(55.85, 48.26, 90.80°)
OKLaboklab(61.92% -0.0063 0.1079)
OKLCHoklch(61.92% 0.108 93.3)
XYZxyz(22.4364, 23.7612, 5.8867)
Luminance0.2376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C842D #2D459C
analogous
#9C4D2D #9C842D #7D9C2D
triadic
#9C842D #2D9C84 #842D9C
tetradic
#9C842D #2D9C4D #2D459C #9C2D7D
square
#9C842D #2D9C4D #2D459C #9C2D7D
split-complementary
#9C842D #2D7D9C #4D2D9C
monochromatic
#3D3412 #6D5C1F #9C842D #C8AA3F #D5BF6E

Accessibility & contrast

On white

3.65
#9C842D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#9C842D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C842D
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C842D#FFFFFF#000000##000000
##9C842D1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928221
Deuteranopia (green-blind)
#988932
Tritanopia (blue-blind)
#A97972
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9c842d;
/* rgb */ color: rgb(156, 132, 45);
/* oklch */ color: oklch(61.9% 0.108 93.3);
Tailwind
colors: {
  custom: {
    50: '#bda76b',
    500: '#9c842d',
    950: '#000000',
  },
}
SCSS
$custom: #9c842d;
$custom-light: #bda76b;
$custom-dark: #000000;
JSON
{
  "hex": "#9c842d",
  "rgb": {
    "r": 156,
    "g": 132,
    "b": 45
  },
  "hsl": {
    "h": 47.027,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.61921,
    "c": 0.10807,
    "h": 93.3
  },
  "luminance": 0.2376
}

Semantic roles & 50–950 ramp

primary
#9C842D
secondary
#687BBC
accent
#6ADF49
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9C842D

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

Preview Lab → · Contrast checker → · Palette generator →

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