#9E2FA5#9E2FA5

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

Color values

HEX#9E2FA5
RGBrgb(158, 47, 165)
HSLhsl(296, 56%, 42%)
HSVhsv(296, 72%, 65%)
CMYKcmyk(4.2%, 71.5%, 0%, 35.3%)
CIE-LABlab(41.25, 59.81, -40.55)
CIE-LCHlch(41.25, 72.26, 325.86°)
OKLaboklab(51.95% 0.1634 -0.1127)
OKLCHoklch(51.95% 0.199 325.4)
XYZxyz(21.9081, 12.0202, 36.7562)
Luminance0.1202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2FA5 #36A52F
analogous
#632FA5 #9E2FA5 #A52F71
triadic
#9E2FA5 #A59E2F #2FA59E
tetradic
#9E2FA5 #A5632F #36A52F #2F71A5
square
#9E2FA5 #A5632F #36A52F #2F71A5
split-complementary
#9E2FA5 #71A52F #2FA563
monochromatic
#431446 #702175 #9E2FA5 #C347CB #D276D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E2FA5#FFFFFF#000000##FFFFFF
##9E2FA51.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)
#0F59A8
Deuteranopia (green-blind)
#4866A2
Tritanopia (blue-blind)
#A24267
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9e2fa5;
/* rgb */ color: rgb(158, 47, 165);
/* oklch */ color: oklch(51.9% 0.199 325.4);
Tailwind
colors: {
  custom: {
    50: '#be72c0',
    500: '#9e2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #9e2fa5;
$custom-light: #be72c0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2fa5",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 296.441,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51949,
    "c": 0.19854,
    "h": 325.4
  },
  "luminance": 0.12019
}

Semantic roles & 50–950 ramp

primary
#9E2FA5
secondary
#74C070
accent
#DF4952
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9E2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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