#9E23A9#9E23A9

#9E23A9 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.2% C 0.214 H 324.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9E23A9
RGBrgb(158, 35, 169)
HSLhsl(295, 66%, 40%)
HSVhsv(295, 79%, 66%)
CMYKcmyk(6.5%, 79.3%, 0%, 33.7%)
CIE-LABlab(40.14, 64.36, -44.71)
CIE-LCHlch(40.14, 78.36, 325.21°)
OKLaboklab(51.24% 0.1739 -0.1248)
OKLCHoklch(51.24% 0.214 324.3)
XYZxyz(21.8624, 11.3372, 38.5652)
Luminance0.1134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E23A9 #2EA923
analogous
#5B23A9 #9E23A9 #A92371
triadic
#9E23A9 #A99E23 #23A99E
tetradic
#9E23A9 #A95B23 #2EA923 #2371A9
square
#9E23A9 #A95B23 #2EA923 #2371A9
split-complementary
#9E23A9 #71A923 #23A95B
monochromatic
#3F0E44 #6F1976 #9E23A9 #C834D5 #D667DF

Accessibility & contrast

On white

6.43
#9E23A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9E23A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E23A9
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E23A9#FFFFFF#000000##FFFFFF
##9E23A91.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#3F63A6
Tritanopia (blue-blind)
#A13D66
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e23a9;
/* rgb */ color: rgb(158, 35, 169);
/* oklch */ color: oklch(51.2% 0.214 324.3);
Tailwind
colors: {
  custom: {
    50: '#bf6ec3',
    500: '#9e23a9',
    950: '#000000',
  },
}
SCSS
$custom: #9e23a9;
$custom-light: #bf6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e23a9",
  "rgb": {
    "r": 158,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 295.075,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.51238,
    "c": 0.21403,
    "h": 324.3
  },
  "luminance": 0.11336
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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