#9F23A6#9F23A6

#9F23A6 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.2% C 0.212 H 325.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9F23A6
RGBrgb(159, 35, 166)
HSLhsl(297, 65%, 39%)
HSVhsv(297, 79%, 65%)
CMYKcmyk(4.2%, 78.9%, 0%, 34.9%)
CIE-LABlab(40.13, 64.05, -42.93)
CIE-LCHlch(40.13, 77.11, 326.17°)
OKLaboklab(51.2% 0.1752 -0.1196)
OKLCHoklch(51.2% 0.212 325.7)
XYZxyz(21.7816, 11.3277, 37.1082)
Luminance0.1133 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F23A6 #2AA623
analogous
#5E23A6 #9F23A6 #A6236C
triadic
#9F23A6 #A69F23 #23A69F
tetradic
#9F23A6 #A65E23 #2AA623 #236CA6
square
#9F23A6 #A65E23 #2AA623 #236CA6
split-complementary
#9F23A6 #6CA623 #23A65E
monochromatic
#3E0E41 #6F1873 #9F23A6 #CB32D4 #D865DF

Accessibility & contrast

On white

6.43
#9F23A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F23A6
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F23A6#FFFFFF#000000##FFFFFF
##9F23A61.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f23a6;
/* rgb */ color: rgb(159, 35, 166);
/* oklch */ color: oklch(51.2% 0.212 325.7);
Tailwind
colors: {
  custom: {
    50: '#bf6ec1',
    500: '#9f23a6',
    950: '#000000',
  },
}
SCSS
$custom: #9f23a6;
$custom-light: #bf6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f23a6",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 296.794,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51201,
    "c": 0.21212,
    "h": 325.7
  },
  "luminance": 0.11326
}

Semantic roles & 50–950 ramp

primary
#9F23A6
secondary
#66C461
accent
#E84049
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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