#9E2EA7#9E2EA7

#9E2EA7 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.201 H 324.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9E2EA7
RGBrgb(158, 46, 167)
HSLhsl(296, 57%, 42%)
HSVhsv(296, 72%, 65%)
CMYKcmyk(5.4%, 72.5%, 0%, 34.5%)
CIE-LABlab(41.24, 60.52, -41.76)
CIE-LCHlch(41.24, 73.53, 325.39°)
OKLaboklab(51.98% 0.1644 -0.1163)
OKLCHoklch(51.98% 0.201 324.7)
XYZxyz(22.0520, 12.0145, 37.7092)
Luminance0.1201 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2EA7 #37A72E
analogous
#622EA7 #9E2EA7 #A72E74
triadic
#9E2EA7 #A79E2E #2EA79E
tetradic
#9E2EA7 #A7622E #37A72E #2E74A7
square
#9E2EA7 #A7622E #37A72E #2E74A7
split-complementary
#9E2EA7 #74A72E #2EA762
monochromatic
#431447 #712177 #9E2EA7 #C246CC #D276D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E2EA7#FFFFFF#000000##FFFFFF
##9E2EA71.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)
#0559AA
Deuteranopia (green-blind)
#4666A4
Tritanopia (blue-blind)
#A14368
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9e2ea7;
/* rgb */ color: rgb(158, 46, 167);
/* oklch */ color: oklch(52.0% 0.201 324.7);
Tailwind
colors: {
  custom: {
    50: '#be72c2',
    500: '#9e2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #9e2ea7;
$custom-light: #be72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2ea7",
  "rgb": {
    "r": 158,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 295.537,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5198,
    "c": 0.20134,
    "h": 324.7
  },
  "luminance": 0.12013
}

Semantic roles & 50–950 ramp

primary
#9E2EA7
secondary
#76C170
accent
#E04853
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #9E2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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