#9D23A6#9D23A6

#9D23A6 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.9% C 0.211 H 325.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#9D23A6
RGBrgb(157, 35, 166)
HSLhsl(296, 65%, 39%)
HSVhsv(296, 79%, 65%)
CMYKcmyk(5.4%, 78.9%, 0%, 34.9%)
CIE-LABlab(39.79, 63.65, -43.49)
CIE-LCHlch(39.79, 77.09, 325.66°)
OKLaboklab(50.9% 0.173 -0.1212)
OKLCHoklch(50.9% 0.211 325)
XYZxyz(21.3881, 11.1248, 37.0898)
Luminance0.1112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D23A6 #2CA623
analogous
#5C23A6 #9D23A6 #A6236E
triadic
#9D23A6 #A69D23 #23A69D
tetradic
#9D23A6 #A65C23 #2CA623 #236EA6
square
#9D23A6 #A65C23 #2CA623 #236EA6
split-complementary
#9D23A6 #6EA623 #23A65C
monochromatic
#3D0E41 #6D1873 #9D23A6 #C932D4 #D665DF

Accessibility & contrast

On white

6.51
#9D23A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9D23A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D23A6
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D23A6#FFFFFF#000000##FFFFFF
##9D23A61.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#4063A3
Tritanopia (blue-blind)
#A03C65
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d23a6;
/* rgb */ color: rgb(157, 35, 166);
/* oklch */ color: oklch(50.9% 0.211 325.0);
Tailwind
colors: {
  custom: {
    50: '#be6dc1',
    500: '#9d23a6',
    950: '#000000',
  },
}
SCSS
$custom: #9d23a6;
$custom-light: #be6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d23a6",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 295.878,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50897,
    "c": 0.21126,
    "h": 325
  },
  "luminance": 0.11123
}

Semantic roles & 50–950 ramp

primary
#9D23A6
secondary
#68C461
accent
#E8404B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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