#9D8823#9D8823

#9D8823 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.8% C 0.117 H 96.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9D8823
RGBrgb(157, 136, 35)
HSLhsl(50, 64%, 38%)
HSVhsv(50, 78%, 62%)
CMYKcmyk(0%, 13.4%, 77.7%, 38.4%)
CIE-LABlab(56.98, -2.92, 53.34)
CIE-LCHlch(56.98, 53.42, 93.13°)
OKLaboklab(62.82% -0.0139 0.1167)
OKLCHoklch(62.82% 0.117 96.8)
XYZxyz(23.0134, 24.8990, 5.1836)
Luminance0.2490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8823 #23389D
analogous
#9D4B23 #9D8823 #759D23
triadic
#9D8823 #239D88 #88239D
tetradic
#9D8823 #239D4B #23389D #9D2375
square
#9D8823 #239D4B #23389D #9D2375
split-complementary
#9D8823 #23759D #4B239D
monochromatic
#39310D #6B5D18 #9D8823 #CFB32E #DBC65F

Accessibility & contrast

On white

3.51
#9D8823 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#9D8823 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8823
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8823#FFFFFF#000000##000000
##9D88231.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#96850E
Deuteranopia (green-blind)
#9C8C2A
Tritanopia (blue-blind)
#AA7D75
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d8823;
/* rgb */ color: rgb(157, 136, 35);
/* oklch */ color: oklch(62.8% 0.117 96.8);
Tailwind
colors: {
  custom: {
    50: '#beaa66',
    500: '#9d8823',
    950: '#000000',
  },
}
SCSS
$custom: #9d8823;
$custom-light: #beaa66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8823",
  "rgb": {
    "r": 157,
    "g": 136,
    "b": 35
  },
  "hsl": {
    "h": 49.672,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.62816,
    "c": 0.11748,
    "h": 96.8
  },
  "luminance": 0.24898
}

Semantic roles & 50–950 ramp

primary
#9D8823
secondary
#5C6DC0
accent
#5EE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8823

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

Preview Lab → · Contrast checker → · Palette generator →

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