#9B811F#9B811F

#9B811F is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.1% C 0.115 H 93.1°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9B811F
RGBrgb(155, 129, 31)
HSLhsl(47, 67%, 36%)
HSVhsv(47, 80%, 61%)
CMYKcmyk(0%, 16.8%, 80%, 39.2%)
CIE-LABlab(54.83, -0.12, 52.71)
CIE-LCHlch(54.83, 52.71, 90.13°)
OKLaboklab(61.07% -0.0062 0.1146)
OKLCHoklch(61.07% 0.115 93.1)
XYZxyz(21.6164, 22.7693, 4.5524)
Luminance0.2277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B811F #1F399B
analogous
#9B431F #9B811F #779B1F
triadic
#9B811F #1F9B81 #811F9B
tetradic
#9B811F #1F9B43 #1F399B #9B1F77
square
#9B811F #1F9B43 #1F399B #9B1F77
split-complementary
#9B811F #1F779B #431F9B
monochromatic
#352C0B #685715 #9B811F #CEAB29 #DDC157

Accessibility & contrast

On white

3.78
#9B811F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#9B811F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B811F
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B811F#FFFFFF#000000##000000
##9B811F1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#A8766F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9b811f;
/* rgb */ color: rgb(155, 129, 31);
/* oklch */ color: oklch(61.1% 0.115 93.1);
Tailwind
colors: {
  custom: {
    50: '#bda563',
    500: '#9b811f',
    950: '#000000',
  },
}
SCSS
$custom: #9b811f;
$custom-light: #bda563;
$custom-dark: #000000;
JSON
{
  "hex": "#9b811f",
  "rgb": {
    "r": 155,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 47.419,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61067,
    "c": 0.11474,
    "h": 93.1
  },
  "luminance": 0.22768
}

Semantic roles & 50–950 ramp

primary
#9B811F
secondary
#556BC1
accent
#62EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B811F

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

Preview Lab → · Contrast checker → · Palette generator →

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