#9C7D1F#9C7D1F

#9C7D1F is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.3% C 0.113 H 89.3°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9C7D1F
RGBrgb(156, 125, 31)
HSLhsl(45, 67%, 37%)
HSVhsv(45, 80%, 61%)
CMYKcmyk(0%, 19.9%, 80.1%, 38.8%)
CIE-LABlab(53.85, 2.58, 51.86)
CIE-LCHlch(53.85, 51.92, 87.15°)
OKLaboklab(60.32% 0.0014 0.1127)
OKLCHoklch(60.32% 0.113 89.3)
XYZxyz(21.2925, 21.8355, 4.3892)
Luminance0.2183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C7D1F #1F3E9C
analogous
#9C3F1F #9C7D1F #7D9C1F
triadic
#9C7D1F #1F9C7D #7D1F9C
tetradic
#9C7D1F #1F9C3F #1F3E9C #9C1F7D
square
#9C7D1F #1F9C3F #1F3E9C #9C1F7D
split-complementary
#9C7D1F #1F7D9C #3F1F9C
monochromatic
#362B0B #695415 #9C7D1F #CFA629 #DEBC58

Accessibility & contrast

On white

3.91
#9C7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#9C7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C7D1F
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C7D1F#FFFFFF#000000##000000
##9C7D1F1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C0B
Deuteranopia (green-blind)
#948425
Tritanopia (blue-blind)
#A9726B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9c7d1f;
/* rgb */ color: rgb(156, 125, 31);
/* oklch */ color: oklch(60.3% 0.113 89.3);
Tailwind
colors: {
  custom: {
    50: '#bda263',
    500: '#9c7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #9c7d1f;
$custom-light: #bda263;
$custom-dark: #000000;
JSON
{
  "hex": "#9c7d1f",
  "rgb": {
    "r": 156,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 45.12,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60317,
    "c": 0.11269,
    "h": 89.3
  },
  "luminance": 0.21834
}

Semantic roles & 50–950 ramp

primary
#9C7D1F
secondary
#5570C1
accent
#69EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9C7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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