#9D7F1D#9D7F1D

#9D7F1D is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.8% C 0.115 H 90.5°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9D7F1D
RGBrgb(157, 127, 29)
HSLhsl(46, 69%, 36%)
HSVhsv(46, 82%, 62%)
CMYKcmyk(0%, 19.1%, 81.5%, 38.4%)
CIE-LABlab(54.49, 1.85, 53.16)
CIE-LCHlch(54.49, 53.20, 88.01°)
OKLaboklab(60.84% -0.0009 0.115)
OKLCHoklch(60.84% 0.115 90.5)
XYZxyz(21.7171, 22.4370, 4.3491)
Luminance0.2244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7F1D #1D3B9D
analogous
#9D3F1D #9D7F1D #7B9D1D
triadic
#9D7F1D #1D9D7F #7F1D9D
tetradic
#9D7F1D #1D9D3F #1D3B9D #9D1D7B
square
#9D7F1D #1D9D3F #1D3B9D #9D1D7B
split-complementary
#9D7F1D #1D7B9D #3F1D9D
monochromatic
#362B0A #695513 #9D7F1D #D1A927 #E0BF55

Accessibility & contrast

On white

3.83
#9D7F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#9D7F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7F1D
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7F1D#FFFFFF#000000##000000
##9D7F1D1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d7f1d;
/* rgb */ color: rgb(157, 127, 29);
/* oklch */ color: oklch(60.8% 0.115 90.5);
Tailwind
colors: {
  custom: {
    50: '#bea362',
    500: '#9d7f1d',
    950: '#000000',
  },
}
SCSS
$custom: #9d7f1d;
$custom-light: #bea362;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7f1d",
  "rgb": {
    "r": 157,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 45.938,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60838,
    "c": 0.115,
    "h": 90.5
  },
  "luminance": 0.22436
}

Semantic roles & 50–950 ramp

primary
#9D7F1D
secondary
#536DC3
accent
#65EC3C
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D7F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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