#9C7D1C#9C7D1C

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

Color values

HEX#9C7D1C
RGBrgb(156, 125, 28)
HSLhsl(45, 70%, 36%)
HSVhsv(45, 82%, 61%)
CMYKcmyk(0%, 19.9%, 82.1%, 38.8%)
CIE-LABlab(53.84, 2.47, 52.88)
CIE-LCHlch(53.84, 52.94, 87.32°)
OKLaboklab(60.3% 0.0008 0.1142)
OKLCHoklch(60.3% 0.114 89.6)
XYZxyz(21.2548, 21.8204, 4.1906)
Luminance0.2182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C7D1C #1C3B9C
analogous
#9C3D1C #9C7D1C #7B9C1C
triadic
#9C7D1C #1C9C7D #7D1C9C
tetradic
#9C7D1C #1C9C3D #1C3B9C #9C1C7B
square
#9C7D1C #1C9C3D #1C3B9C #9C1C7B
split-complementary
#9C7D1C #1C7B9C #3D1C9C
monochromatic
#342A09 #685313 #9C7D1C #D0A725 #E0BE52

Accessibility & contrast

On white

3.92
#9C7D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#9C7D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C7D1C
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C7D1C#FFFFFF#000000##000000
##9C7D1C1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C03
Deuteranopia (green-blind)
#948422
Tritanopia (blue-blind)
#AA716B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9c7d1c;
/* rgb */ color: rgb(156, 125, 28);
/* oklch */ color: oklch(60.3% 0.114 89.6);
Tailwind
colors: {
  custom: {
    50: '#bea262',
    500: '#9c7d1c',
    950: '#000000',
  },
}
SCSS
$custom: #9c7d1c;
$custom-light: #bea262;
$custom-dark: #000000;
JSON
{
  "hex": "#9c7d1c",
  "rgb": {
    "r": 156,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 45.469,
    "s": 69.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60299,
    "c": 0.11422,
    "h": 89.6
  },
  "luminance": 0.21819
}

Semantic roles & 50–950 ramp

primary
#9C7D1C
secondary
#516CC3
accent
#66EC3B
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9C7D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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