#9E2AA8#9E2AA8

#9E2AA8 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.7% C 0.206 H 324.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9E2AA8
RGBrgb(158, 42, 168)
HSLhsl(295, 60%, 41%)
HSVhsv(295, 75%, 66%)
CMYKcmyk(6%, 75%, 0%, 34.1%)
CIE-LABlab(40.82, 62.05, -43.03)
CIE-LCHlch(40.82, 75.51, 325.26°)
OKLaboklab(51.7% 0.1681 -0.1199)
OKLCHoklch(51.7% 0.206 324.5)
XYZxyz(21.9958, 11.7536, 38.1483)
Luminance0.1175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2AA8 #34A82A
analogous
#5F2AA8 #9E2AA8 #A82A73
triadic
#9E2AA8 #A89E2A #2AA89E
tetradic
#9E2AA8 #A85F2A #34A82A #2A73A8
square
#9E2AA8 #A85F2A #34A82A #2A73A8
split-complementary
#9E2AA8 #73A82A #2AA85F
monochromatic
#421246 #701E77 #9E2AA8 #C440CF #D371DB

Accessibility & contrast

On white

6.27
#9E2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9E2AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2AA8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2AA8#FFFFFF#000000##FFFFFF
##9E2AA81.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#4365A5
Tritanopia (blue-blind)
#A14167
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9e2aa8;
/* rgb */ color: rgb(158, 42, 168);
/* oklch */ color: oklch(51.7% 0.206 324.5);
Tailwind
colors: {
  custom: {
    50: '#be70c2',
    500: '#9e2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #9e2aa8;
$custom-light: #be70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2aa8",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 295.238,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51701,
    "c": 0.20647,
    "h": 324.5
  },
  "luminance": 0.11752
}

Semantic roles & 50–950 ramp

primary
#9E2AA8
secondary
#72C36B
accent
#E34551
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9E2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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