#9F2EA4#9F2EA4

#9F2EA4 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.9% C 0.199 H 326.1°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9F2EA4
RGBrgb(159, 46, 164)
HSLhsl(297, 56%, 41%)
HSVhsv(297, 72%, 64%)
CMYKcmyk(3%, 72%, 0%, 35.7%)
CIE-LABlab(41.23, 60.21, -39.98)
CIE-LCHlch(41.23, 72.28, 326.42°)
OKLaboklab(51.95% 0.1656 -0.111)
OKLCHoklch(51.95% 0.199 326.1)
XYZxyz(21.9755, 12.0067, 36.2748)
Luminance0.1201 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2EA4 #33A42E
analogous
#642EA4 #9F2EA4 #A42E6E
triadic
#9F2EA4 #A49F2E #2EA49F
tetradic
#9F2EA4 #A4642E #33A42E #2E6EA4
square
#9F2EA4 #A4642E #33A42E #2E6EA4
split-complementary
#9F2EA4 #6EA42E #2EA464
monochromatic
#421344 #712174 #9F2EA4 #C545CB #D474D8

Accessibility & contrast

On white

6.17
#9F2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9F2EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2EA4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2EA4#FFFFFF#000000##FFFFFF
##9F2EA41.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1158A7
Deuteranopia (green-blind)
#4966A1
Tritanopia (blue-blind)
#A34166
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f2ea4;
/* rgb */ color: rgb(159, 46, 164);
/* oklch */ color: oklch(51.9% 0.199 326.1);
Tailwind
colors: {
  custom: {
    50: '#bf72bf',
    500: '#9f2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #9f2ea4;
$custom-light: #bf72bf;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2ea4",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 297.458,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51947,
    "c": 0.19935,
    "h": 326.1
  },
  "luminance": 0.12005
}

Semantic roles & 50–950 ramp

primary
#9F2EA4
secondary
#71C06E
accent
#DF484F
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9F2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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