#9D7F1E#9D7F1E

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

Color values

HEX#9D7F1E
RGBrgb(157, 127, 30)
HSLhsl(46, 68%, 37%)
HSVhsv(46, 81%, 62%)
CMYKcmyk(0%, 19.1%, 80.9%, 38.4%)
CIE-LABlab(54.49, 1.88, 52.83)
CIE-LCHlch(54.49, 52.86, 87.96°)
OKLaboklab(60.84% -0.0007 0.1145)
OKLCHoklch(60.84% 0.115 90.4)
XYZxyz(21.7297, 22.4420, 4.4153)
Luminance0.2244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7F1E #1E3C9D
analogous
#9D401E #9D7F1E #7C9D1E
triadic
#9D7F1E #1E9D7F #7F1E9D
tetradic
#9D7F1E #1E9D40 #1E3C9D #9D1E7C
square
#9D7F1E #1E9D40 #1E3C9D #9D1E7C
split-complementary
#9D7F1E #1E7C9D #401E9D
monochromatic
#362C0A #6A5514 #9D7F1E #D0A928 #DFBF57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D7F1E#FFFFFF#000000##000000
##9D7F1E1.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)
#8E7D07
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#AB736D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9d7f1e;
/* rgb */ color: rgb(157, 127, 30);
/* oklch */ color: oklch(60.8% 0.115 90.4);
Tailwind
colors: {
  custom: {
    50: '#bea363',
    500: '#9d7f1e',
    950: '#000000',
  },
}
SCSS
$custom: #9d7f1e;
$custom-light: #bea363;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7f1e",
  "rgb": {
    "r": 157,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 45.827,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60844,
    "c": 0.1145,
    "h": 90.4
  },
  "luminance": 0.22441
}

Semantic roles & 50–950 ramp

primary
#9D7F1E
secondary
#546EC2
accent
#66EB3D
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D7F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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