#9D23B1#9D23B1

#9D23B1 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.6% C 0.220 H 321.4°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9D23B1
RGBrgb(157, 35, 177)
HSLhsl(292, 67%, 42%)
HSVhsv(292, 80%, 69%)
CMYKcmyk(11.3%, 80.2%, 0%, 30.6%)
CIE-LABlab(40.48, 65.56, -48.93)
CIE-LCHlch(40.48, 81.81, 323.27°)
OKLaboklab(51.61% 0.1719 -0.1372)
OKLCHoklch(51.61% 0.22 321.4)
XYZxyz(22.4406, 11.5458, 42.6330)
Luminance0.1154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D23B1 #37B123
analogous
#5623B1 #9D23B1 #B1237E
triadic
#9D23B1 #B19D23 #23B19D
tetradic
#9D23B1 #B15623 #37B123 #237EB1
square
#9D23B1 #B15623 #37B123 #237EB1
split-complementary
#9D23B1 #7EB123 #23B156
monochromatic
#420F4B #70197E #9D23B1 #C239D8 #D16CE2

Accessibility & contrast

On white

6.35
#9D23B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9D23B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D23B1
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D23B1#FFFFFF#000000##FFFFFF
##9D23B11.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B5
Deuteranopia (green-blind)
#3764AE
Tritanopia (blue-blind)
#9E426B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9d23b1;
/* rgb */ color: rgb(157, 35, 177);
/* oklch */ color: oklch(51.6% 0.220 321.4);
Tailwind
colors: {
  custom: {
    50: '#be6ec9',
    500: '#9d23b1',
    950: '#000000',
  },
}
SCSS
$custom: #9d23b1;
$custom-light: #be6ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d23b1",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 291.549,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.5161,
    "c": 0.21992,
    "h": 321.4
  },
  "luminance": 0.11544
}

Semantic roles & 50–950 ramp

primary
#9D23B1
secondary
#75C868
accent
#EA3E56
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9D23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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