#9B7D1F#9B7D1F

#9B7D1F is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.2% C 0.112 H 89.9°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9B7D1F
RGBrgb(155, 125, 31)
HSLhsl(45, 67%, 36%)
HSVhsv(45, 80%, 61%)
CMYKcmyk(0%, 19.4%, 80%, 39.2%)
CIE-LABlab(53.75, 2.12, 51.72)
CIE-LCHlch(53.75, 51.77, 87.65°)
OKLaboklab(60.21% 0.0002 0.1124)
OKLCHoklch(60.21% 0.112 89.9)
XYZxyz(21.0998, 21.7361, 4.3802)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7D1F #1F3D9B
analogous
#9B3F1F #9B7D1F #7B9B1F
triadic
#9B7D1F #1F9B7D #7D1F9B
tetradic
#9B7D1F #1F9B3F #1F3D9B #9B1F7B
square
#9B7D1F #1F9B3F #1F3D9B #9B1F7B
split-complementary
#9B7D1F #1F7B9B #3F1F9B
monochromatic
#352B0B #685415 #9B7D1F #CEA629 #DDBD57

Accessibility & contrast

On white

3.93
#9B7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#9B7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7D1F
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7D1F#FFFFFF#000000##000000
##9B7D1F1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b7d1f;
/* rgb */ color: rgb(155, 125, 31);
/* oklch */ color: oklch(60.2% 0.112 89.9);
Tailwind
colors: {
  custom: {
    50: '#bda263',
    500: '#9b7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #9b7d1f;
$custom-light: #bda263;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7d1f",
  "rgb": {
    "r": 155,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 45.484,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60209,
    "c": 0.11244,
    "h": 89.9
  },
  "luminance": 0.21735
}

Semantic roles & 50–950 ramp

primary
#9B7D1F
secondary
#556FC1
accent
#68EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9B7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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