#9E2FA7#9E2FA7

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

Color values

HEX#9E2FA7
RGBrgb(158, 47, 167)
HSLhsl(296, 56%, 42%)
HSVhsv(296, 72%, 65%)
CMYKcmyk(5.4%, 71.9%, 0%, 34.5%)
CIE-LABlab(41.36, 60.16, -41.56)
CIE-LCHlch(41.36, 73.12, 325.36°)
OKLaboklab(52.07% 0.1634 -0.1157)
OKLCHoklch(52.07% 0.2 324.7)
XYZxyz(22.0916, 12.0935, 37.7224)
Luminance0.1209 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2FA7 #38A72F
analogous
#622FA7 #9E2FA7 #A72F74
triadic
#9E2FA7 #A79E2F #2FA79E
tetradic
#9E2FA7 #A7622F #38A72F #2F74A7
square
#9E2FA7 #A7622F #38A72F #2F74A7
split-complementary
#9E2FA7 #74A72F #2FA762
monochromatic
#441447 #712277 #9E2FA7 #C248CB #D278D9

Accessibility & contrast

On white

6.14
#9E2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E2FA7
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2FA7#FFFFFF#000000##FFFFFF
##9E2FA71.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0959AA
Deuteranopia (green-blind)
#4666A4
Tritanopia (blue-blind)
#A14368
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9e2fa7;
/* rgb */ color: rgb(158, 47, 167);
/* oklch */ color: oklch(52.1% 0.200 324.7);
Tailwind
colors: {
  custom: {
    50: '#be72c2',
    500: '#9e2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #9e2fa7;
$custom-light: #be72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2fa7",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 295.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52069,
    "c": 0.20019,
    "h": 324.7
  },
  "luminance": 0.12092
}

Semantic roles & 50–950 ramp

primary
#9E2FA7
secondary
#77C171
accent
#DF4854
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #9E2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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