#9E2BA7#9E2BA7

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

Color values

HEX#9E2BA7
RGBrgb(158, 43, 167)
HSLhsl(296, 59%, 41%)
HSVhsv(296, 74%, 65%)
CMYKcmyk(5.4%, 74.3%, 0%, 34.5%)
CIE-LABlab(40.88, 61.55, -42.34)
CIE-LCHlch(40.88, 74.70, 325.48°)
OKLaboklab(51.72% 0.1672 -0.1179)
OKLCHoklch(51.72% 0.205 324.8)
XYZxyz(21.9389, 11.7883, 37.6715)
Luminance0.1179 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2BA7 #34A72B
analogous
#602BA7 #9E2BA7 #A72B72
triadic
#9E2BA7 #A79E2B #2BA79E
tetradic
#9E2BA7 #A7602B #34A72B #2B72A7
square
#9E2BA7 #A7602B #34A72B #2B72A7
split-complementary
#9E2BA7 #72A72B #2BA760
monochromatic
#421246 #701E76 #9E2BA7 #C441CE #D372DB

Accessibility & contrast

On white

6.25
#9E2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9E2BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2BA7
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2BA7#FFFFFF#000000##FFFFFF
##9E2BA71.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#4465A4
Tritanopia (blue-blind)
#A14167
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9e2ba7;
/* rgb */ color: rgb(158, 43, 167);
/* oklch */ color: oklch(51.7% 0.205 324.8);
Tailwind
colors: {
  custom: {
    50: '#be71c2',
    500: '#9e2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #9e2ba7;
$custom-light: #be71c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2ba7",
  "rgb": {
    "r": 158,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 295.645,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51722,
    "c": 0.20462,
    "h": 324.8
  },
  "luminance": 0.11787
}

Semantic roles & 50–950 ramp

primary
#9E2BA7
secondary
#72C26C
accent
#E24651
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9E2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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