#9F23A7#9F23A7

#9F23A7 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.3% C 0.213 H 325.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9F23A7
RGBrgb(159, 35, 167)
HSLhsl(296, 65%, 40%)
HSVhsv(296, 79%, 65%)
CMYKcmyk(4.8%, 79%, 0%, 34.5%)
CIE-LABlab(40.19, 64.22, -43.43)
CIE-LCHlch(40.19, 77.53, 325.93°)
OKLaboklab(51.26% 0.1751 -0.121)
OKLCHoklch(51.26% 0.213 325.4)
XYZxyz(21.8737, 11.3645, 37.5932)
Luminance0.1136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F23A7 #2BA723
analogous
#5D23A7 #9F23A7 #A7236D
triadic
#9F23A7 #A79F23 #23A79F
tetradic
#9F23A7 #A75D23 #2BA723 #236DA7
square
#9F23A7 #A75D23 #2BA723 #236DA7
split-complementary
#9F23A7 #6DA723 #23A75D
monochromatic
#3F0E42 #6F1874 #9F23A7 #CA33D4 #D766DF

Accessibility & contrast

On white

6.42
#9F23A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9F23A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F23A7
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F23A7#FFFFFF#000000##FFFFFF
##9F23A71.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#4264A4
Tritanopia (blue-blind)
#A33C65
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f23a7;
/* rgb */ color: rgb(159, 35, 167);
/* oklch */ color: oklch(51.3% 0.213 325.4);
Tailwind
colors: {
  custom: {
    50: '#bf6ec2',
    500: '#9f23a7',
    950: '#000000',
  },
}
SCSS
$custom: #9f23a7;
$custom-light: #bf6ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f23a7",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 296.364,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51263,
    "c": 0.21289,
    "h": 325.4
  },
  "luminance": 0.11363
}

Semantic roles & 50–950 ramp

primary
#9F23A7
secondary
#67C461
accent
#E83F4A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9F23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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