#9D811B#9D811B

#9D811B is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.3% C 0.117 H 92.2°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9D811B
RGBrgb(157, 129, 27)
HSLhsl(47, 71%, 36%)
HSVhsv(47, 83%, 62%)
CMYKcmyk(0%, 17.8%, 82.8%, 38.4%)
CIE-LABlab(55.02, 0.66, 54.29)
CIE-LCHlch(55.02, 54.29, 89.30°)
OKLaboklab(61.26% -0.0045 0.117)
OKLCHoklch(61.26% 0.117 92.2)
XYZxyz(21.9540, 22.9491, 4.3100)
Luminance0.2295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D811B #1B379D
analogous
#9D401B #9D811B #789D1B
triadic
#9D811B #1B9D81 #811B9D
tetradic
#9D811B #1B9D40 #1B379D #9D1B78
square
#9D811B #1B9D40 #1B379D #9D1B78
split-complementary
#9D811B #1B789D #401B9D
monochromatic
#352B09 #695612 #9D811B #D1AC24 #E1C251

Accessibility & contrast

On white

3.76
#9D811B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#9D811B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D811B
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D811B#FFFFFF#000000##000000
##9D811B1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#978722
Tritanopia (blue-blind)
#AA756E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9d811b;
/* rgb */ color: rgb(157, 129, 27);
/* oklch */ color: oklch(61.3% 0.117 92.2);
Tailwind
colors: {
  custom: {
    50: '#bea562',
    500: '#9d811b',
    950: '#000000',
  },
}
SCSS
$custom: #9d811b;
$custom-light: #bea562;
$custom-dark: #000000;
JSON
{
  "hex": "#9d811b",
  "rgb": {
    "r": 157,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 47.077,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61255,
    "c": 0.11708,
    "h": 92.2
  },
  "luminance": 0.22948
}

Semantic roles & 50–950 ramp

primary
#9D811B
secondary
#5069C4
accent
#61ED3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9D811B

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

Preview Lab → · Contrast checker → · Palette generator →

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