#9C841F#9C841F

#9C841F is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.8% C 0.117 H 94.8°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9C841F
RGBrgb(156, 132, 31)
HSLhsl(48, 67%, 37%)
HSVhsv(48, 80%, 61%)
CMYKcmyk(0%, 15.4%, 80.1%, 38.8%)
CIE-LABlab(55.76, -1.33, 53.58)
CIE-LCHlch(55.76, 53.60, 91.42°)
OKLaboklab(61.82% -0.0097 0.1164)
OKLCHoklch(61.82% 0.117 94.8)
XYZxyz(22.2101, 23.6707, 4.6951)
Luminance0.2367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C841F #1F379C
analogous
#9C461F #9C841F #769C1F
triadic
#9C841F #1F9C84 #841F9C
tetradic
#9C841F #1F9C46 #1F379C #9C1F76
square
#9C841F #1F9C46 #1F379C #9C1F76
split-complementary
#9C841F #1F769C #461F9C
monochromatic
#362E0B #695915 #9C841F #CFAF29 #DEC458

Accessibility & contrast

On white

3.66
#9C841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#9C841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C841F
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C841F#FFFFFF#000000##000000
##9C841F1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938107
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#A97971
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9c841f;
/* rgb */ color: rgb(156, 132, 31);
/* oklch */ color: oklch(61.8% 0.117 94.8);
Tailwind
colors: {
  custom: {
    50: '#bda764',
    500: '#9c841f',
    950: '#000000',
  },
}
SCSS
$custom: #9c841f;
$custom-light: #bda764;
$custom-dark: #000000;
JSON
{
  "hex": "#9c841f",
  "rgb": {
    "r": 156,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 48.48,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.6182,
    "c": 0.1168,
    "h": 94.8
  },
  "luminance": 0.23669
}

Semantic roles & 50–950 ramp

primary
#9C841F
secondary
#556AC1
accent
#5FEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9C841F

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

Preview Lab → · Contrast checker → · Palette generator →

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