#9B7E1C#9B7E1C

#9B7E1C is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.4% C 0.115 H 91.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#9B7E1C
RGBrgb(155, 126, 28)
HSLhsl(46, 69%, 36%)
HSVhsv(46, 82%, 61%)
CMYKcmyk(0%, 18.7%, 81.9%, 39.2%)
CIE-LABlab(54.00, 1.45, 52.99)
CIE-LCHlch(54.00, 53.01, 88.43°)
OKLaboklab(60.41% -0.002 0.1145)
OKLCHoklch(60.41% 0.115 91)
XYZxyz(21.1893, 21.9755, 4.2240)
Luminance0.2197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7E1C #1C399B
analogous
#9B3E1C #9B7E1C #789B1C
triadic
#9B7E1C #1C9B7E #7E1C9B
tetradic
#9B7E1C #1C9B3E #1C399B #9B1C78
square
#9B7E1C #1C9B3E #1C399B #9B1C78
split-complementary
#9B7E1C #1C789B #3E1C9B
monochromatic
#332A09 #675413 #9B7E1C #CFA825 #E0BF52

Accessibility & contrast

On white

3.89
#9B7E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#9B7E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7E1C
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7E1C#FFFFFF#000000##000000
##9B7E1C1.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C03
Deuteranopia (green-blind)
#948522
Tritanopia (blue-blind)
#A8736C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9b7e1c;
/* rgb */ color: rgb(155, 126, 28);
/* oklch */ color: oklch(60.4% 0.115 91.0);
Tailwind
colors: {
  custom: {
    50: '#bda362',
    500: '#9b7e1c',
    950: '#000000',
  },
}
SCSS
$custom: #9b7e1c;
$custom-light: #bda362;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7e1c",
  "rgb": {
    "r": 155,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 46.299,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60405,
    "c": 0.11453,
    "h": 91
  },
  "luminance": 0.21974
}

Semantic roles & 50–950 ramp

primary
#9B7E1C
secondary
#506AC3
accent
#64EC3C
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9B7E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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