#9F2ABC#9F2ABC

#9F2ABC is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.1% C 0.223 H 318.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#9F2ABC
RGBrgb(159, 42, 188)
HSLhsl(288, 63%, 45%)
HSVhsv(288, 78%, 74%)
CMYKcmyk(15.4%, 77.7%, 0%, 26.3%)
CIE-LABlab(42.24, 65.86, -52.57)
CIE-LCHlch(42.24, 84.26, 321.40°)
OKLaboklab(53.15% 0.1674 -0.1478)
OKLCHoklch(53.15% 0.223 318.5)
XYZxyz(24.2019, 12.6589, 48.7358)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2ABC #47BC2A
analogous
#562ABC #9F2ABC #BC2A90
triadic
#9F2ABC #BC9F2A #2ABC9F
tetradic
#9F2ABC #BC562A #47BC2A #2A90BC
square
#9F2ABC #BC562A #47BC2A #2A90BC
split-complementary
#9F2ABC #90BC2A #2ABC56
monochromatic
#4A1458 #751F8A #9F2ABC #BB4CD7 #CE7EE2

Accessibility & contrast

On white

5.95
#9F2ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9F2ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2ABC
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2ABC#FFFFFF#000000##FFFFFF
##9F2ABC1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#3367B9
Tritanopia (blue-blind)
#9E4A73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f2abc;
/* rgb */ color: rgb(159, 42, 188);
/* oklch */ color: oklch(53.1% 0.223 318.5);
Tailwind
colors: {
  custom: {
    50: '#c071d1',
    500: '#9f2abc',
    950: '#000000',
  },
}
SCSS
$custom: #9f2abc;
$custom-light: #c071d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2abc",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 288.082,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53145,
    "c": 0.22329,
    "h": 318.5
  },
  "luminance": 0.12658
}

Semantic roles & 50–950 ramp

primary
#9F2ABC
secondary
#88CB77
accent
#E74162
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9F2ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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