#9D8522#9D8522

#9D8522 is a light, moderate yellow. Relative luminance 0.241; OKLCH L 62.2% C 0.116 H 94.6°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9D8522
RGBrgb(157, 133, 34)
HSLhsl(48, 64%, 37%)
HSVhsv(48, 78%, 62%)
CMYKcmyk(0%, 15.3%, 78.3%, 38.4%)
CIE-LABlab(56.15, -1.30, 52.93)
CIE-LCHlch(56.15, 52.94, 91.41°)
OKLaboklab(62.16% -0.0094 0.1156)
OKLCHoklch(62.16% 0.116 94.6)
XYZxyz(22.5821, 24.0599, 4.9677)
Luminance0.2406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8522 #223A9D
analogous
#9D4822 #9D8522 #779D22
triadic
#9D8522 #229D85 #85229D
tetradic
#9D8522 #229D48 #223A9D #9D2277
square
#9D8522 #229D48 #223A9D #9D2277
split-complementary
#9D8522 #22779D #48229D
monochromatic
#38300C #6B5A17 #9D8522 #CFB02D #DCC35D

Accessibility & contrast

On white

3.61
#9D8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#9D8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8522
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8522#FFFFFF#000000##000000
##9D85221.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820E
Deuteranopia (green-blind)
#9A8A28
Tritanopia (blue-blind)
#AA7A72
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9d8522;
/* rgb */ color: rgb(157, 133, 34);
/* oklch */ color: oklch(62.2% 0.116 94.6);
Tailwind
colors: {
  custom: {
    50: '#bea865',
    500: '#9d8522',
    950: '#000000',
  },
}
SCSS
$custom: #9d8522;
$custom-light: #bea865;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8522",
  "rgb": {
    "r": 157,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 48.293,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62158,
    "c": 0.11596,
    "h": 94.6
  },
  "luminance": 0.24059
}

Semantic roles & 50–950 ramp

primary
#9D8522
secondary
#5A6EC1
accent
#61E740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8522

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

Preview Lab → · Contrast checker → · Palette generator →

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