#9D8D23#9D8D23

#9D8D23 is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.9% C 0.121 H 100.3°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9D8D23
RGBrgb(157, 141, 35)
HSLhsl(52, 64%, 38%)
HSVhsv(52, 78%, 62%)
CMYKcmyk(0%, 10.2%, 77.7%, 38.4%)
CIE-LABlab(58.36, -5.65, 54.62)
CIE-LCHlch(58.36, 54.91, 95.91°)
OKLaboklab(63.91% -0.0216 0.1194)
OKLCHoklch(63.91% 0.121 100.3)
XYZxyz(23.7340, 26.3403, 5.4238)
Luminance0.2634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D23 #23339D
analogous
#9D5023 #9D8D23 #709D23
triadic
#9D8D23 #239D8D #8D239D
tetradic
#9D8D23 #239D50 #23339D #9D2370
square
#9D8D23 #239D50 #23339D #9D2370
split-complementary
#9D8D23 #23709D #50239D
monochromatic
#39330D #6B6018 #9D8D23 #CFBA2E #DBCB5F

Accessibility & contrast

On white

3.35
#9D8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9D8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D23
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D23#FFFFFF#000000##000000
##9D8D231.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B890C
Deuteranopia (green-blind)
#A08F2B
Tritanopia (blue-blind)
#AA8279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d23;
/* rgb */ color: rgb(157, 141, 35);
/* oklch */ color: oklch(63.9% 0.121 100.3);
Tailwind
colors: {
  custom: {
    50: '#beae67',
    500: '#9d8d23',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d23;
$custom-light: #beae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d23",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 52.131,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63911,
    "c": 0.12133,
    "h": 100.3
  },
  "luminance": 0.26339
}

Semantic roles & 50–950 ramp

primary
#9D8D23
secondary
#5C69C0
accent
#57E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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