#9D7F1F#9D7F1F

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

Color values

HEX#9D7F1F
RGBrgb(157, 127, 31)
HSLhsl(46, 67%, 37%)
HSVhsv(46, 80%, 62%)
CMYKcmyk(0%, 19.1%, 80.3%, 38.4%)
CIE-LABlab(54.50, 1.92, 52.48)
CIE-LCHlch(54.50, 52.52, 87.90°)
OKLaboklab(60.85% -0.0005 0.114)
OKLCHoklch(60.85% 0.114 90.3)
XYZxyz(21.7426, 22.4472, 4.4836)
Luminance0.2245 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7F1F #1F3D9D
analogous
#9D401F #9D7F1F #7C9D1F
triadic
#9D7F1F #1F9D7F #7F1F9D
tetradic
#9D7F1F #1F9D40 #1F3D9D #9D1F7C
square
#9D7F1F #1F9D40 #1F3D9D #9D1F7C
split-complementary
#9D7F1F #1F7C9D #401F9D
monochromatic
#372C0B #6A5615 #9D7F1F #D0A829 #DEBE58

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D7F1F#FFFFFF#000000##000000
##9D7F1F1.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)
#8E7D0A
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#AA746D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9d7f1f;
/* rgb */ color: rgb(157, 127, 31);
/* oklch */ color: oklch(60.9% 0.114 90.3);
Tailwind
colors: {
  custom: {
    50: '#bea363',
    500: '#9d7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #9d7f1f;
$custom-light: #bea363;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7f1f",
  "rgb": {
    "r": 157,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 45.714,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.6085,
    "c": 0.11398,
    "h": 90.3
  },
  "luminance": 0.22446
}

Semantic roles & 50–950 ramp

primary
#9D7F1F
secondary
#5670C2
accent
#67EA3E
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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