#9B7D1E#9B7D1E

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

Color values

HEX#9B7D1E
RGBrgb(155, 125, 30)
HSLhsl(46, 68%, 36%)
HSVhsv(46, 81%, 61%)
CMYKcmyk(0%, 19.4%, 80.6%, 39.2%)
CIE-LABlab(53.74, 2.08, 52.07)
CIE-LCHlch(53.74, 52.11, 87.71°)
OKLaboklab(60.2% 0 0.113)
OKLCHoklch(60.2% 0.113 90)
XYZxyz(21.0868, 21.7309, 4.3119)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7D1E #1E3C9B
analogous
#9B3F1E #9B7D1E #7B9B1E
triadic
#9B7D1E #1E9B7D #7D1E9B
tetradic
#9B7D1E #1E9B3F #1E3C9B #9B1E7B
square
#9B7D1E #1E9B3F #1E3C9B #9B1E7B
split-complementary
#9B7D1E #1E7B9B #3F1E9B
monochromatic
#342A0A #685414 #9B7D1E #CEA628 #DEBD55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B7D1E#FFFFFF#000000##000000
##9B7D1E1.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)
#8C7C08
Deuteranopia (green-blind)
#938424
Tritanopia (blue-blind)
#A8726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9b7d1e;
/* rgb */ color: rgb(155, 125, 30);
/* oklch */ color: oklch(60.2% 0.113 90.0);
Tailwind
colors: {
  custom: {
    50: '#bda263',
    500: '#9b7d1e',
    950: '#000000',
  },
}
SCSS
$custom: #9b7d1e;
$custom-light: #bda263;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7d1e",
  "rgb": {
    "r": 155,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 45.6,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60203,
    "c": 0.11297,
    "h": 90
  },
  "luminance": 0.2173
}

Semantic roles & 50–950 ramp

primary
#9B7D1E
secondary
#536EC2
accent
#67EA3D
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9B7D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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