#9E23CA#9E23CA

#9E23CA is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.5% C 0.240 H 314.6°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#9E23CA
RGBrgb(158, 35, 202)
HSLhsl(284, 70%, 46%)
HSVhsv(284, 83%, 79%)
CMYKcmyk(21.8%, 82.7%, 0%, 20.8%)
CIE-LABlab(42.36, 70.33, -60.55)
CIE-LCHlch(42.36, 92.80, 319.27°)
OKLaboklab(53.5% 0.1688 -0.1712)
OKLCHoklch(53.5% 0.24 314.6)
XYZxyz(25.3604, 12.7364, 56.9881)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E23CA #4FCA23
analogous
#4B23CA #9E23CA #CA23A3
triadic
#9E23CA #CA9E23 #23CA9E
tetradic
#9E23CA #CA4B23 #4FCA23 #23A3CA
square
#9E23CA #CA4B23 #4FCA23 #23A3CA
split-complementary
#9E23CA #A3CA23 #23CA4B
monochromatic
#4C1162 #751A96 #9E23CA #B84AE0 #CD7FE9

Accessibility & contrast

On white

5.92
#9E23CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9E23CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E23CA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E23CA#FFFFFF#000000##FFFFFF
##9E23CA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#1167C7
Tritanopia (blue-blind)
#9A4E79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9e23ca;
/* rgb */ color: rgb(158, 35, 202);
/* oklch */ color: oklch(53.5% 0.240 314.6);
Tailwind
colors: {
  custom: {
    50: '#c06fdb',
    500: '#9e23ca',
    950: '#000000',
  },
}
SCSS
$custom: #9e23ca;
$custom-light: #c06fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e23ca",
  "rgb": {
    "r": 158,
    "g": 35,
    "b": 202
  },
  "hsl": {
    "h": 284.192,
    "s": 70.464,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53503,
    "c": 0.24044,
    "h": 314.6
  },
  "luminance": 0.12735
}

Semantic roles & 50–950 ramp

primary
#9E23CA
secondary
#8FD178
accent
#ED3B6A
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9E23CA

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

Preview Lab → · Contrast checker → · Palette generator →

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