#9E2CA8#9E2CA8

#9E2CA8 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.204 H 324.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9E2CA8
RGBrgb(158, 44, 168)
HSLhsl(295, 58%, 42%)
HSVhsv(295, 74%, 66%)
CMYKcmyk(6%, 73.8%, 0%, 34.1%)
CIE-LABlab(41.06, 61.39, -42.65)
CIE-LCHlch(41.06, 74.75, 325.21°)
OKLaboklab(51.87% 0.1662 -0.1188)
OKLCHoklch(51.87% 0.204 324.4)
XYZxyz(22.0685, 11.8990, 38.1726)
Luminance0.1190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2CA8 #36A82C
analogous
#602CA8 #9E2CA8 #A82C74
triadic
#9E2CA8 #A89E2C #2CA89E
tetradic
#9E2CA8 #A8602C #36A82C #2C74A8
square
#9E2CA8 #A8602C #36A82C #2C74A8
split-complementary
#9E2CA8 #74A82C #2CA860
monochromatic
#431347 #701F78 #9E2CA8 #C343CE #D274DB

Accessibility & contrast

On white

6.21
#9E2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9E2CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2CA8
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2CA8#FFFFFF#000000##FFFFFF
##9E2CA81.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#4465A5
Tritanopia (blue-blind)
#A14268
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9e2ca8;
/* rgb */ color: rgb(158, 44, 168);
/* oklch */ color: oklch(51.9% 0.204 324.4);
Tailwind
colors: {
  custom: {
    50: '#be71c2',
    500: '#9e2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #9e2ca8;
$custom-light: #be71c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2ca8",
  "rgb": {
    "r": 158,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 295.161,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51868,
    "c": 0.20436,
    "h": 324.4
  },
  "luminance": 0.11898
}

Semantic roles & 50–950 ramp

primary
#9E2CA8
secondary
#74C26E
accent
#E24653
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9E2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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