#9E2BA6#9E2BA6

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

Color values

HEX#9E2BA6
RGBrgb(158, 43, 166)
HSLhsl(296, 59%, 41%)
HSVhsv(296, 74%, 65%)
CMYKcmyk(4.8%, 74.1%, 0%, 34.9%)
CIE-LABlab(40.82, 61.37, -41.84)
CIE-LCHlch(40.82, 74.28, 325.72°)
OKLaboklab(51.66% 0.1673 -0.1165)
OKLCHoklch(51.66% 0.204 325.2)
XYZxyz(21.8468, 11.7515, 37.1866)
Luminance0.1175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2BA6 #33A62B
analogous
#602BA6 #9E2BA6 #A62B70
triadic
#9E2BA6 #A69E2B #2BA69E
tetradic
#9E2BA6 #A6602B #33A62B #2B70A6
square
#9E2BA6 #A6602B #33A62B #2B70A6
split-complementary
#9E2BA6 #70A62B #2BA660
monochromatic
#411245 #701E75 #9E2BA6 #C441CE #D371DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E2BA6#FFFFFF#000000##FFFFFF
##9E2BA61.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)
#0057A9
Deuteranopia (green-blind)
#4565A3
Tritanopia (blue-blind)
#A24066
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9e2ba6;
/* rgb */ color: rgb(158, 43, 166);
/* oklch */ color: oklch(51.7% 0.204 325.2);
Tailwind
colors: {
  custom: {
    50: '#be71c1',
    500: '#9e2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #9e2ba6;
$custom-light: #be71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2ba6",
  "rgb": {
    "r": 158,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 296.098,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5166,
    "c": 0.20381,
    "h": 325.2
  },
  "luminance": 0.1175
}

Semantic roles & 50–950 ramp

primary
#9E2BA6
secondary
#71C16B
accent
#E24650
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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