#9F2EC2#9F2EC2

#9F2EC2 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.9% C 0.224 H 316.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#9F2EC2
RGBrgb(159, 46, 194)
HSLhsl(286, 62%, 47%)
HSVhsv(286, 76%, 76%)
CMYKcmyk(18%, 76.3%, 0%, 23.9%)
CIE-LABlab(43.09, 65.69, -54.71)
CIE-LCHlch(43.09, 85.49, 320.21°)
OKLaboklab(53.87% 0.1632 -0.1541)
OKLCHoklch(53.87% 0.224 316.6)
XYZxyz(25.0112, 13.2210, 52.2629)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2EC2 #51C22E
analogous
#552EC2 #9F2EC2 #C22E9B
triadic
#9F2EC2 #C29F2E #2EC29F
tetradic
#9F2EC2 #C2552E #51C22E #2E9BC2
square
#9F2EC2 #C2552E #51C22E #2E9BC2
split-complementary
#9F2EC2 #9BC22E #2EC255
monochromatic
#4E175F #762291 #9F2EC2 #B956D7 #CD88E3

Accessibility & contrast

On white

5.76
#9F2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9F2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2EC2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2EC2#FFFFFF#000000##FFFFFF
##9F2EC21.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#2F69BF
Tritanopia (blue-blind)
#9D4F77
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9f2ec2;
/* rgb */ color: rgb(159, 46, 194);
/* oklch */ color: oklch(53.9% 0.224 316.6);
Tailwind
colors: {
  custom: {
    50: '#c073d5',
    500: '#9f2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #9f2ec2;
$custom-light: #c073d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2ec2",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 285.811,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53872,
    "c": 0.22445,
    "h": 316.6
  },
  "luminance": 0.1322
}

Semantic roles & 50–950 ramp

primary
#9F2EC2
secondary
#92CC7F
accent
#E54369
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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