#9D9823#9D9823

#9D9823 is a light, vivid yellow. Relative luminance 0.297; OKLCH L 66.4% C 0.131 H 106.9°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#9D9823
RGBrgb(157, 152, 35)
HSLhsl(58, 64%, 38%)
HSVhsv(58, 78%, 62%)
CMYKcmyk(0%, 3.2%, 77.7%, 38.4%)
CIE-LABlab(61.44, -11.56, 57.44)
CIE-LCHlch(61.44, 58.59, 101.38°)
OKLaboklab(66.36% -0.0382 0.1254)
OKLCHoklch(66.36% 0.131 106.9)
XYZxyz(25.4373, 29.7468, 5.9916)
Luminance0.2975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9823 #23289D
analogous
#9D5B23 #9D9823 #659D23
triadic
#9D9823 #239D98 #98239D
tetradic
#9D9823 #239D5B #23289D #9D2365
square
#9D9823 #239D5B #23289D #9D2365
split-complementary
#9D9823 #23659D #5B239D
monochromatic
#39370D #6B6818 #9D9823 #CFC82E #DBD65F

Accessibility & contrast

On white

3.02
#9D9823 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#9D9823 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9823
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9823#FFFFFF#000000##000000
##9D98231.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59204
Deuteranopia (green-blind)
#A8962D
Tritanopia (blue-blind)
#A98D82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9d9823;
/* rgb */ color: rgb(157, 152, 35);
/* oklch */ color: oklch(66.4% 0.131 106.9);
Tailwind
colors: {
  custom: {
    50: '#beb668',
    500: '#9d9823',
    950: '#000000',
  },
}
SCSS
$custom: #9d9823;
$custom-light: #beb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9823",
  "rgb": {
    "r": 157,
    "g": 152,
    "b": 35
  },
  "hsl": {
    "h": 57.541,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.66358,
    "c": 0.13109,
    "h": 106.9
  },
  "luminance": 0.29746
}

Semantic roles & 50–950 ramp

primary
#9D9823
secondary
#5C60C0
accent
#48E741
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9D9823

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

Preview Lab → · Contrast checker → · Palette generator →

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