#9F23CA#9F23CA

#9F23CA is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.6% C 0.241 H 314.9°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9F23CA
RGBrgb(159, 35, 202)
HSLhsl(285, 70%, 46%)
HSVhsv(285, 83%, 79%)
CMYKcmyk(21.3%, 82.7%, 0%, 20.8%)
CIE-LABlab(42.52, 70.49, -60.29)
CIE-LCHlch(42.52, 92.76, 319.46°)
OKLaboklab(53.64% 0.17 -0.1704)
OKLCHoklch(53.64% 0.241 314.9)
XYZxyz(25.5580, 12.8382, 56.9974)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F23CA #4ECA23
analogous
#4C23CA #9F23CA #CA23A2
triadic
#9F23CA #CA9F23 #23CA9F
tetradic
#9F23CA #CA4C23 #4ECA23 #23A2CA
square
#9F23CA #CA4C23 #4ECA23 #23A2CA
split-complementary
#9F23CA #A2CA23 #23CA4C
monochromatic
#4D1162 #761A96 #9F23CA #B94AE0 #CD7FE9

Accessibility & contrast

On white

5.89
#9F23CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9F23CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F23CA
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F23CA#FFFFFF#000000##FFFFFF
##9F23CA1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#1467C7
Tritanopia (blue-blind)
#9B4E79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f23ca;
/* rgb */ color: rgb(159, 35, 202);
/* oklch */ color: oklch(53.6% 0.241 314.9);
Tailwind
colors: {
  custom: {
    50: '#c16fdb',
    500: '#9f23ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f23ca;
$custom-light: #c16fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f23ca",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 202
  },
  "hsl": {
    "h": 284.551,
    "s": 70.464,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53643,
    "c": 0.24076,
    "h": 314.9
  },
  "luminance": 0.12837
}

Semantic roles & 50–950 ramp

primary
#9F23CA
secondary
#8FD178
accent
#ED3B69
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9F23CA

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

Preview Lab → · Contrast checker → · Palette generator →

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