#9F2EA7#9F2EA7

#9F2EA7 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.1% C 0.202 H 325.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9F2EA7
RGBrgb(159, 46, 167)
HSLhsl(296, 57%, 42%)
HSVhsv(296, 72%, 65%)
CMYKcmyk(4.8%, 72.5%, 0%, 34.5%)
CIE-LABlab(41.40, 60.74, -41.50)
CIE-LCHlch(41.40, 73.56, 325.66°)
OKLaboklab(52.13% 0.1655 -0.1155)
OKLCHoklch(52.13% 0.202 325.1)
XYZxyz(22.2496, 12.1164, 37.7185)
Luminance0.1211 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2EA7 #36A72E
analogous
#632EA7 #9F2EA7 #A72E73
triadic
#9F2EA7 #A79F2E #2EA79F
tetradic
#9F2EA7 #A7632E #36A72E #2E73A7
square
#9F2EA7 #A7632E #36A72E #2E73A7
split-complementary
#9F2EA7 #73A72E #2EA763
monochromatic
#441447 #712177 #9F2EA7 #C346CC #D376D9

Accessibility & contrast

On white

6.13
#9F2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9F2EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2EA7
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2EA7#FFFFFF#000000##FFFFFF
##9F2EA71.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0859AA
Deuteranopia (green-blind)
#4766A4
Tritanopia (blue-blind)
#A34268
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9f2ea7;
/* rgb */ color: rgb(159, 46, 167);
/* oklch */ color: oklch(52.1% 0.202 325.1);
Tailwind
colors: {
  custom: {
    50: '#bf72c2',
    500: '#9f2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #9f2ea7;
$custom-light: #bf72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2ea7",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 296.033,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52127,
    "c": 0.2018,
    "h": 325.1
  },
  "luminance": 0.12115
}

Semantic roles & 50–950 ramp

primary
#9F2EA7
secondary
#75C170
accent
#E04852
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #9F2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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