#9F23B2#9F23B2

#9F23B2 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 52.0% C 0.221 H 321.8°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#9F23B2
RGBrgb(159, 35, 178)
HSLhsl(292, 67%, 42%)
HSVhsv(292, 80%, 70%)
CMYKcmyk(10.7%, 80.3%, 0%, 30.2%)
CIE-LABlab(40.88, 66.11, -48.87)
CIE-LCHlch(40.88, 82.22, 323.53°)
OKLaboklab(51.97% 0.1741 -0.1369)
OKLCHoklch(51.97% 0.221 321.8)
XYZxyz(22.9341, 11.7887, 43.1783)
Luminance0.1179 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F23B2 #36B223
analogous
#5823B2 #9F23B2 #B2237E
triadic
#9F23B2 #B29F23 #23B29F
tetradic
#9F23B2 #B25823 #36B223 #237EB2
square
#9F23B2 #B25823 #36B223 #237EB2
split-complementary
#9F23B2 #7EB223 #23B258
monochromatic
#440F4C #71197F #9F23B2 #C33AD8 #D36DE2

Accessibility & contrast

On white

6.25
#9F23B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9F23B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F23B2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F23B2#FFFFFF#000000##FFFFFF
##9F23B21.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#3965AF
Tritanopia (blue-blind)
#A1426C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f23b2;
/* rgb */ color: rgb(159, 35, 178);
/* oklch */ color: oklch(52.0% 0.221 321.8);
Tailwind
colors: {
  custom: {
    50: '#c06eca',
    500: '#9f23b2',
    950: '#000000',
  },
}
SCSS
$custom: #9f23b2;
$custom-light: #c06eca;
$custom-dark: #000000;
JSON
{
  "hex": "#9f23b2",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 292.028,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51972,
    "c": 0.22149,
    "h": 321.8
  },
  "luminance": 0.11787
}

Semantic roles & 50–950 ramp

primary
#9F23B2
secondary
#75C968
accent
#EA3E55
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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