#9F2EC4#9F2EC4

#9F2EC4 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.226 H 316.1°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9F2EC4
RGBrgb(159, 46, 196)
HSLhsl(285, 62%, 47%)
HSVhsv(285, 77%, 77%)
CMYKcmyk(18.9%, 76.5%, 0%, 23.1%)
CIE-LABlab(43.23, 66.07, -55.66)
CIE-LCHlch(43.23, 86.39, 319.89°)
OKLaboklab(54.01% 0.1629 -0.1569)
OKLCHoklch(54.01% 0.226 316.1)
XYZxyz(25.2373, 13.3115, 53.4538)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2EC4 #53C42E
analogous
#542EC4 #9F2EC4 #C42E9E
triadic
#9F2EC4 #C49F2E #2EC49F
tetradic
#9F2EC4 #C4542E #53C42E #2E9EC4
square
#9F2EC4 #C4542E #53C42E #2E9EC4
split-complementary
#9F2EC4 #9EC42E #2EC454
monochromatic
#4F1761 #772292 #9F2EC4 #B858D8 #CD89E3

Accessibility & contrast

On white

5.73
#9F2EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9F2EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2EC4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2EC4#FFFFFF#000000##FFFFFF
##9F2EC41.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#2C69C1
Tritanopia (blue-blind)
#9C5078
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9f2ec4;
/* rgb */ color: rgb(159, 46, 196);
/* oklch */ color: oklch(54.0% 0.226 316.1);
Tailwind
colors: {
  custom: {
    50: '#c073d7',
    500: '#9f2ec4',
    950: '#000000',
  },
}
SCSS
$custom: #9f2ec4;
$custom-light: #c073d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2ec4",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 196
  },
  "hsl": {
    "h": 285.2,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54009,
    "c": 0.22617,
    "h": 316.1
  },
  "luminance": 0.1331
}

Semantic roles & 50–950 ramp

primary
#9F2EC4
secondary
#94CD81
accent
#E5436B
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F2EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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