#9D822B#9D822B

#9D822B is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.6% C 0.108 H 91.3°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9D822B
RGBrgb(157, 130, 43)
HSLhsl(46, 57%, 39%)
HSVhsv(46, 73%, 62%)
CMYKcmyk(0%, 17.2%, 72.6%, 38.4%)
CIE-LABlab(55.39, 0.78, 48.67)
CIE-LCHlch(55.39, 48.68, 89.08°)
OKLaboklab(61.58% -0.0024 0.1084)
OKLCHoklch(61.58% 0.108 91.3)
XYZxyz(22.3245, 23.3091, 5.6083)
Luminance0.2331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D822B #2B469D
analogous
#9D492B #9D822B #7F9D2B
triadic
#9D822B #2B9D82 #822B9D
tetradic
#9D822B #2B9D49 #2B469D #9D2B7F
square
#9D822B #2B9D49 #2B469D #9D2B7F
split-complementary
#9D822B #2B7F9D #492B9D
monochromatic
#3D3211 #6D5A1E #9D822B #CAA83C #D7BD6C

Accessibility & contrast

On white

3.71
#9D822B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#9D822B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D822B
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D822B#FFFFFF#000000##000000
##9D822B1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91801F
Deuteranopia (green-blind)
#978830
Tritanopia (blue-blind)
#AA7770
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9d822b;
/* rgb */ color: rgb(157, 130, 43);
/* oklch */ color: oklch(61.6% 0.108 91.3);
Tailwind
colors: {
  custom: {
    50: '#bea66a',
    500: '#9d822b',
    950: '#000000',
  },
}
SCSS
$custom: #9d822b;
$custom-light: #bea66a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d822b",
  "rgb": {
    "r": 157,
    "g": 130,
    "b": 43
  },
  "hsl": {
    "h": 45.789,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.61578,
    "c": 0.10839,
    "h": 91.3
  },
  "luminance": 0.23308
}

Semantic roles & 50–950 ramp

primary
#9D822B
secondary
#667BBD
accent
#6CE048
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F07
muted
#827F7A

Preview Lab

Preview with #9D822B

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

Preview Lab → · Contrast checker → · Palette generator →

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