#9D821D#9D821D

#9D821D is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.5% C 0.117 H 92.8°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9D821D
RGBrgb(157, 130, 29)
HSLhsl(47, 69%, 36%)
HSVhsv(47, 82%, 62%)
CMYKcmyk(0%, 17.2%, 81.5%, 38.4%)
CIE-LABlab(55.30, 0.17, 53.89)
CIE-LCHlch(55.30, 53.89, 89.82°)
OKLaboklab(61.48% -0.0057 0.1166)
OKLCHoklch(61.48% 0.117 92.8)
XYZxyz(22.1103, 23.2234, 4.4802)
Luminance0.2322 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D821D #1D389D
analogous
#9D421D #9D821D #789D1D
triadic
#9D821D #1D9D82 #821D9D
tetradic
#9D821D #1D9D42 #1D389D #9D1D78
square
#9D821D #1D9D42 #1D389D #9D1D78
split-complementary
#9D821D #1D789D #421D9D
monochromatic
#362C0A #695713 #9D821D #D1AD27 #E0C255

Accessibility & contrast

On white

3.72
#9D821D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#9D821D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D821D
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D821D#FFFFFF#000000##000000
##9D821D1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918003
Deuteranopia (green-blind)
#988824
Tritanopia (blue-blind)
#AA776F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9d821d;
/* rgb */ color: rgb(157, 130, 29);
/* oklch */ color: oklch(61.5% 0.117 92.8);
Tailwind
colors: {
  custom: {
    50: '#bea563',
    500: '#9d821d',
    950: '#000000',
  },
}
SCSS
$custom: #9d821d;
$custom-light: #bea563;
$custom-dark: #000000;
JSON
{
  "hex": "#9d821d",
  "rgb": {
    "r": 157,
    "g": 130,
    "b": 29
  },
  "hsl": {
    "h": 47.344,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61481,
    "c": 0.1167,
    "h": 92.8
  },
  "luminance": 0.23222
}

Semantic roles & 50–950 ramp

primary
#9D821D
secondary
#536BC3
accent
#61EC3C
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D821D

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

Preview Lab → · Contrast checker → · Palette generator →

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