#9E23A6#9E23A6

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

Color values

HEX#9E23A6
RGBrgb(158, 35, 166)
HSLhsl(296, 65%, 39%)
HSVhsv(296, 79%, 65%)
CMYKcmyk(4.8%, 78.9%, 0%, 34.9%)
CIE-LABlab(39.96, 63.85, -43.21)
CIE-LCHlch(39.96, 77.10, 325.91°)
OKLaboklab(51.05% 0.1741 -0.1204)
OKLCHoklch(51.05% 0.212 325.3)
XYZxyz(21.5840, 11.2258, 37.0990)
Luminance0.1122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E23A6 #2BA623
analogous
#5D23A6 #9E23A6 #A6236D
triadic
#9E23A6 #A69E23 #23A69E
tetradic
#9E23A6 #A65D23 #2BA623 #236DA6
square
#9E23A6 #A65D23 #2BA623 #236DA6
split-complementary
#9E23A6 #6DA623 #23A65D
monochromatic
#3E0E41 #6E1873 #9E23A6 #CA32D4 #D765DF

Accessibility & contrast

On white

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

On black

3.24
#9E23A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9E23A6#FFFFFF#000000##FFFFFF
##9E23A61.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#4163A3
Tritanopia (blue-blind)
#A23C65
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9e23a6;
/* rgb */ color: rgb(158, 35, 166);
/* oklch */ color: oklch(51.0% 0.212 325.3);
Tailwind
colors: {
  custom: {
    50: '#bf6ec1',
    500: '#9e23a6',
    950: '#000000',
  },
}
SCSS
$custom: #9e23a6;
$custom-light: #bf6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e23a6",
  "rgb": {
    "r": 158,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 296.336,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51049,
    "c": 0.21169,
    "h": 325.3
  },
  "luminance": 0.11224
}

Semantic roles & 50–950 ramp

primary
#9E23A6
secondary
#67C461
accent
#E8404A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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