#9A7D1F#9A7D1F

#9A7D1F is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 60.1% C 0.112 H 90.6°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9A7D1F
RGBrgb(154, 125, 31)
HSLhsl(46, 66%, 36%)
HSVhsv(46, 80%, 60%)
CMYKcmyk(0%, 18.8%, 79.9%, 39.6%)
CIE-LABlab(53.64, 1.66, 51.59)
CIE-LCHlch(53.64, 51.61, 88.16°)
OKLaboklab(60.1% -0.0011 0.1122)
OKLCHoklch(60.1% 0.112 90.6)
XYZxyz(20.9086, 21.6375, 4.3713)
Luminance0.2164 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7D1F #1F3C9A
analogous
#9A401F #9A7D1F #7A9A1F
triadic
#9A7D1F #1F9A7D #7D1F9A
tetradic
#9A7D1F #1F9A40 #1F3C9A #9A1F7A
square
#9A7D1F #1F9A40 #1F3C9A #9A1F7A
split-complementary
#9A7D1F #1F7A9A #401F9A
monochromatic
#342A0A #675415 #9A7D1F #CDA629 #DDBD56

Accessibility & contrast

On white

3.94
#9A7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#9A7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7D1F
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7D1F#FFFFFF#000000##000000
##9A7D1F1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0B
Deuteranopia (green-blind)
#938425
Tritanopia (blue-blind)
#A7726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9a7d1f;
/* rgb */ color: rgb(154, 125, 31);
/* oklch */ color: oklch(60.1% 0.112 90.6);
Tailwind
colors: {
  custom: {
    50: '#bca263',
    500: '#9a7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #9a7d1f;
$custom-light: #bca263;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7d1f",
  "rgb": {
    "r": 154,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 45.854,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60101,
    "c": 0.11222,
    "h": 90.6
  },
  "luminance": 0.21636
}

Semantic roles & 50–950 ramp

primary
#9A7D1F
secondary
#546EC1
accent
#67E93E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9A7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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