#9D7F1C#9D7F1C

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

Color values

HEX#9D7F1C
RGBrgb(157, 127, 28)
HSLhsl(46, 70%, 36%)
HSVhsv(46, 82%, 62%)
CMYKcmyk(0%, 19.1%, 82.2%, 38.4%)
CIE-LABlab(54.48, 1.81, 53.49)
CIE-LCHlch(54.48, 53.52, 88.06°)
OKLaboklab(60.83% -0.0011 0.1155)
OKLCHoklch(60.83% 0.116 90.6)
XYZxyz(21.7049, 22.4321, 4.2850)
Luminance0.2243 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7F1C #1C3A9D
analogous
#9D3F1C #9D7F1C #7B9D1C
triadic
#9D7F1C #1C9D7F #7F1C9D
tetradic
#9D7F1C #1C9D3F #1C3A9D #9D1C7B
square
#9D7F1C #1C9D3F #1C3A9D #9D1C7B
split-complementary
#9D7F1C #1C7B9D #3F1C9D
monochromatic
#352B09 #695513 #9D7F1C #D1A925 #E0BF53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D7F1C#FFFFFF#000000##000000
##9D7F1C1.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)
#8E7D02
Deuteranopia (green-blind)
#968622
Tritanopia (blue-blind)
#AB736D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9d7f1c;
/* rgb */ color: rgb(157, 127, 28);
/* oklch */ color: oklch(60.8% 0.116 90.6);
Tailwind
colors: {
  custom: {
    50: '#bea362',
    500: '#9d7f1c',
    950: '#000000',
  },
}
SCSS
$custom: #9d7f1c;
$custom-light: #bea362;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7f1c",
  "rgb": {
    "r": 157,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 46.047,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60833,
    "c": 0.1155,
    "h": 90.6
  },
  "luminance": 0.22431
}

Semantic roles & 50–950 ramp

primary
#9D7F1C
secondary
#516CC3
accent
#64ED3B
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9D7F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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