#9B7F1D#9B7F1D

#9B7F1D is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.115 H 91.7°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9B7F1D
RGBrgb(155, 127, 29)
HSLhsl(47, 68%, 36%)
HSVhsv(47, 81%, 61%)
CMYKcmyk(0%, 18.1%, 81.3%, 39.2%)
CIE-LABlab(54.28, 0.92, 52.90)
CIE-LCHlch(54.28, 52.91, 89.00°)
OKLaboklab(60.62% -0.0034 0.1145)
OKLCHoklch(60.62% 0.115 91.7)
XYZxyz(21.3300, 22.2374, 4.3309)
Luminance0.2224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7F1D #1D399B
analogous
#9B401D #9B7F1D #789B1D
triadic
#9B7F1D #1D9B7F #7F1D9B
tetradic
#9B7F1D #1D9B40 #1D399B #9B1D78
square
#9B7F1D #1D9B40 #1D399B #9B1D78
split-complementary
#9B7F1D #1D789B #401D9B
monochromatic
#342B0A #675513 #9B7F1D #CFA927 #DFC053

Accessibility & contrast

On white

3.86
#9B7F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#9B7F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7F1D
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7F1D#FFFFFF#000000##000000
##9B7F1D1.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D05
Deuteranopia (green-blind)
#958523
Tritanopia (blue-blind)
#A8746D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9b7f1d;
/* rgb */ color: rgb(155, 127, 29);
/* oklch */ color: oklch(60.6% 0.115 91.7);
Tailwind
colors: {
  custom: {
    50: '#bda362',
    500: '#9b7f1d',
    950: '#000000',
  },
}
SCSS
$custom: #9b7f1d;
$custom-light: #bda362;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7f1d",
  "rgb": {
    "r": 155,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 46.667,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60625,
    "c": 0.11458,
    "h": 91.7
  },
  "luminance": 0.22236
}

Semantic roles & 50–950 ramp

primary
#9B7F1D
secondary
#526BC2
accent
#63EB3C
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B7F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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