#9F23B1#9F23B1

#9F23B1 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.9% C 0.221 H 322.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9F23B1
RGBrgb(159, 35, 177)
HSLhsl(292, 67%, 42%)
HSVhsv(292, 80%, 69%)
CMYKcmyk(10.2%, 80.2%, 0%, 30.6%)
CIE-LABlab(40.81, 65.94, -48.38)
CIE-LCHlch(40.81, 81.79, 323.73°)
OKLaboklab(51.91% 0.1742 -0.1355)
OKLCHoklch(51.91% 0.221 322.1)
XYZxyz(22.8341, 11.7487, 42.6514)
Luminance0.1175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F23B1 #35B123
analogous
#5823B1 #9F23B1 #B1237C
triadic
#9F23B1 #B19F23 #23B19F
tetradic
#9F23B1 #B15823 #35B123 #237CB1
square
#9F23B1 #B15823 #35B123 #237CB1
split-complementary
#9F23B1 #7CB123 #23B158
monochromatic
#430F4B #71197E #9F23B1 #C439D8 #D36CE2

Accessibility & contrast

On white

6.27
#9F23B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9F23B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F23B1
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F23B1#FFFFFF#000000##FFFFFF
##9F23B11.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B5
Deuteranopia (green-blind)
#3965AE
Tritanopia (blue-blind)
#A1416B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f23b1;
/* rgb */ color: rgb(159, 35, 177);
/* oklch */ color: oklch(51.9% 0.221 322.1);
Tailwind
colors: {
  custom: {
    50: '#c06ec9',
    500: '#9f23b1',
    950: '#000000',
  },
}
SCSS
$custom: #9f23b1;
$custom-light: #c06ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f23b1",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 292.394,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51906,
    "c": 0.2207,
    "h": 322.1
  },
  "luminance": 0.11747
}

Semantic roles & 50–950 ramp

primary
#9F23B1
secondary
#74C868
accent
#EA3E54
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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