#9D23B2#9D23B2

#9D23B2 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.7% C 0.221 H 321.1°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#9D23B2
RGBrgb(157, 35, 178)
HSLhsl(291, 67%, 42%)
HSVhsv(291, 80%, 70%)
CMYKcmyk(11.8%, 80.3%, 0%, 30.2%)
CIE-LABlab(40.55, 65.74, -49.42)
CIE-LCHlch(40.55, 82.24, 323.07°)
OKLaboklab(51.68% 0.1718 -0.1386)
OKLCHoklch(51.68% 0.221 321.1)
XYZxyz(22.5406, 11.5858, 43.1599)
Luminance0.1158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D23B2 #38B223
analogous
#5623B2 #9D23B2 #B22380
triadic
#9D23B2 #B29D23 #23B29D
tetradic
#9D23B2 #B25623 #38B223 #2380B2
square
#9D23B2 #B25623 #38B223 #2380B2
split-complementary
#9D23B2 #80B223 #23B256
monochromatic
#430F4C #70197F #9D23B2 #C13AD8 #D16DE2

Accessibility & contrast

On white

6.33
#9D23B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#9D23B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D23B2
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D23B2#FFFFFF#000000##FFFFFF
##9D23B21.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#3664AF
Tritanopia (blue-blind)
#9E426C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d23b2;
/* rgb */ color: rgb(157, 35, 178);
/* oklch */ color: oklch(51.7% 0.221 321.1);
Tailwind
colors: {
  custom: {
    50: '#be6eca',
    500: '#9d23b2',
    950: '#000000',
  },
}
SCSS
$custom: #9d23b2;
$custom-light: #be6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#9d23b2",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 291.189,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51677,
    "c": 0.22072,
    "h": 321.1
  },
  "luminance": 0.11585
}

Semantic roles & 50–950 ramp

primary
#9D23B2
secondary
#76C968
accent
#EA3E57
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9D23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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