#9D7D1C#9D7D1C

#9D7D1C is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.4% C 0.114 H 89.0°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9D7D1C
RGBrgb(157, 125, 28)
HSLhsl(45, 70%, 36%)
HSVhsv(45, 82%, 62%)
CMYKcmyk(0%, 20.4%, 82.2%, 38.4%)
CIE-LABlab(53.94, 2.93, 53.02)
CIE-LCHlch(53.94, 53.10, 86.83°)
OKLaboklab(60.41% 0.0021 0.1145)
OKLCHoklch(60.41% 0.114 89)
XYZxyz(21.4492, 21.9206, 4.1998)
Luminance0.2192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7D1C #1C3C9D
analogous
#9D3D1C #9D7D1C #7D9D1C
triadic
#9D7D1C #1C9D7D #7D1C9D
tetradic
#9D7D1C #1C9D3D #1C3C9D #9D1C7D
square
#9D7D1C #1C9D3D #1C3C9D #9D1C7D
split-complementary
#9D7D1C #1C7D9D #3D1C9D
monochromatic
#352A09 #695413 #9D7D1C #D1A625 #E0BD53

Accessibility & contrast

On white

3.90
#9D7D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#9D7D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7D1C
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7D1C#FFFFFF#000000##000000
##9D7D1C1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C03
Deuteranopia (green-blind)
#948522
Tritanopia (blue-blind)
#AB716B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9d7d1c;
/* rgb */ color: rgb(157, 125, 28);
/* oklch */ color: oklch(60.4% 0.114 89.0);
Tailwind
colors: {
  custom: {
    50: '#bea262',
    500: '#9d7d1c',
    950: '#000000',
  },
}
SCSS
$custom: #9d7d1c;
$custom-light: #bea262;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7d1c",
  "rgb": {
    "r": 157,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 45.116,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60407,
    "c": 0.11448,
    "h": 89
  },
  "luminance": 0.21919
}

Semantic roles & 50–950 ramp

primary
#9D7D1C
secondary
#516EC3
accent
#67ED3B
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9D7D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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