#9D23A9#9D23A9

#9D23A9 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 51.1% C 0.214 H 324.0°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#9D23A9
RGBrgb(157, 35, 169)
HSLhsl(295, 66%, 40%)
HSVhsv(295, 79%, 66%)
CMYKcmyk(7.1%, 79.3%, 0%, 33.7%)
CIE-LABlab(39.98, 64.16, -44.99)
CIE-LCHlch(39.98, 78.36, 324.97°)
OKLaboklab(51.09% 0.1728 -0.1256)
OKLCHoklch(51.09% 0.214 324)
XYZxyz(21.6665, 11.2361, 38.5560)
Luminance0.1124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D23A9 #2FA923
analogous
#5A23A9 #9D23A9 #A92372
triadic
#9D23A9 #A99D23 #23A99D
tetradic
#9D23A9 #A95A23 #2FA923 #2372A9
square
#9D23A9 #A95A23 #2FA923 #2372A9
split-complementary
#9D23A9 #72A923 #23A95A
monochromatic
#3F0E44 #6E1976 #9D23A9 #C734D5 #D567DF

Accessibility & contrast

On white

6.47
#9D23A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9D23A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D23A9
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D23A9#FFFFFF#000000##FFFFFF
##9D23A91.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#3E63A6
Tritanopia (blue-blind)
#A03E66
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d23a9;
/* rgb */ color: rgb(157, 35, 169);
/* oklch */ color: oklch(51.1% 0.214 324.0);
Tailwind
colors: {
  custom: {
    50: '#be6ec3',
    500: '#9d23a9',
    950: '#000000',
  },
}
SCSS
$custom: #9d23a9;
$custom-light: #be6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d23a9",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 294.627,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.51088,
    "c": 0.21361,
    "h": 324
  },
  "luminance": 0.11235
}

Semantic roles & 50–950 ramp

primary
#9D23A9
secondary
#6BC563
accent
#E93F4E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9D23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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