#9B7D1C#9B7D1C

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

Color values

HEX#9B7D1C
RGBrgb(155, 125, 28)
HSLhsl(46, 69%, 36%)
HSVhsv(46, 82%, 61%)
CMYKcmyk(0%, 19.4%, 81.9%, 39.2%)
CIE-LABlab(53.73, 2.01, 52.75)
CIE-LCHlch(53.73, 52.78, 87.82°)
OKLaboklab(60.19% -0.0004 0.114)
OKLCHoklch(60.19% 0.114 90.2)
XYZxyz(21.0621, 21.7210, 4.1816)
Luminance0.2172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7D1C #1C3A9B
analogous
#9B3D1C #9B7D1C #799B1C
triadic
#9B7D1C #1C9B7D #7D1C9B
tetradic
#9B7D1C #1C9B3D #1C3A9B #9B1C79
square
#9B7D1C #1C9B3D #1C3A9B #9B1C79
split-complementary
#9B7D1C #1C799B #3D1C9B
monochromatic
#332909 #675313 #9B7D1C #CFA725 #E0BE52

Accessibility & contrast

On white

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

On black

5.34
#9B7D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7D1C
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7D1C#FFFFFF#000000##000000
##9B7D1C1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b7d1c;
/* rgb */ color: rgb(155, 125, 28);
/* oklch */ color: oklch(60.2% 0.114 90.2);
Tailwind
colors: {
  custom: {
    50: '#bda262',
    500: '#9b7d1c',
    950: '#000000',
  },
}
SCSS
$custom: #9b7d1c;
$custom-light: #bda262;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7d1c",
  "rgb": {
    "r": 155,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 45.827,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60191,
    "c": 0.11399,
    "h": 90.2
  },
  "luminance": 0.2172
}

Semantic roles & 50–950 ramp

primary
#9B7D1C
secondary
#506BC3
accent
#65EC3C
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9B7D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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