#9C7F1D#9C7F1D

#9C7F1D is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.7% C 0.115 H 91.1°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9C7F1D
RGBrgb(156, 127, 29)
HSLhsl(46, 69%, 36%)
HSVhsv(46, 81%, 61%)
CMYKcmyk(0%, 18.6%, 81.4%, 38.8%)
CIE-LABlab(54.38, 1.39, 53.03)
CIE-LCHlch(54.38, 53.05, 88.50°)
OKLaboklab(60.73% -0.0022 0.1148)
OKLCHoklch(60.73% 0.115 91.1)
XYZxyz(21.5227, 22.3368, 4.3400)
Luminance0.2233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C7F1D #1D3A9C
analogous
#9C401D #9C7F1D #7A9C1D
triadic
#9C7F1D #1D9C7F #7F1D9C
tetradic
#9C7F1D #1D9C40 #1D3A9C #9C1D7A
square
#9C7F1D #1D9C40 #1D3A9C #9C1D7A
split-complementary
#9C7F1D #1D7A9C #401D9C
monochromatic
#352B0A #685513 #9C7F1D #D0A927 #DFBF54

Accessibility & contrast

On white

3.84
#9C7F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#9C7F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C7F1D
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C7F1D#FFFFFF#000000##000000
##9C7F1D1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D05
Deuteranopia (green-blind)
#958523
Tritanopia (blue-blind)
#A9746D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9c7f1d;
/* rgb */ color: rgb(156, 127, 29);
/* oklch */ color: oklch(60.7% 0.115 91.1);
Tailwind
colors: {
  custom: {
    50: '#bda362',
    500: '#9c7f1d',
    950: '#000000',
  },
}
SCSS
$custom: #9c7f1d;
$custom-light: #bda362;
$custom-dark: #000000;
JSON
{
  "hex": "#9c7f1d",
  "rgb": {
    "r": 156,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 46.299,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60731,
    "c": 0.11479,
    "h": 91.1
  },
  "luminance": 0.22335
}

Semantic roles & 50–950 ramp

primary
#9C7F1D
secondary
#526CC2
accent
#64EB3C
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9C7F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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