#9C842F#9C842F

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

Color values

HEX#9C842F
RGBrgb(156, 132, 47)
HSLhsl(47, 54%, 40%)
HSVhsv(47, 70%, 61%)
CMYKcmyk(0%, 15.4%, 69.9%, 38.8%)
CIE-LABlab(55.86, -0.56, 47.40)
CIE-LCHlch(55.86, 47.40, 90.68°)
OKLaboklab(61.94% -0.0057 0.1065)
OKLCHoklch(61.94% 0.107 93.1)
XYZxyz(22.4758, 23.7769, 6.0943)
Luminance0.2378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C842F #2F479C
analogous
#9C4D2F #9C842F #7E9C2F
triadic
#9C842F #2F9C84 #842F9C
tetradic
#9C842F #2F9C4D #2F479C #9C2F7E
square
#9C842F #2F9C4D #2F479C #9C2F7E
split-complementary
#9C842F #2F7E9C #4D2F9C
monochromatic
#3E3413 #6D5C21 #9C842F #C6A942 #D4BE71

Accessibility & contrast

On white

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

On black

5.76
#9C842F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C842F
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C842F#FFFFFF#000000##000000
##9C842F1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c842f;
/* rgb */ color: rgb(156, 132, 47);
/* oklch */ color: oklch(61.9% 0.107 93.1);
Tailwind
colors: {
  custom: {
    50: '#bda76c',
    500: '#9c842f',
    950: '#000000',
  },
}
SCSS
$custom: #9c842f;
$custom-light: #bda76c;
$custom-dark: #000000;
JSON
{
  "hex": "#9c842f",
  "rgb": {
    "r": 156,
    "g": 132,
    "b": 47
  },
  "hsl": {
    "h": 46.789,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.61939,
    "c": 0.10661,
    "h": 93.1
  },
  "luminance": 0.23776
}

Semantic roles & 50–950 ramp

primary
#9C842F
secondary
#6B7DBC
accent
#6BDD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9C842F

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

Preview Lab → · Contrast checker → · Palette generator →

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