#9E2A8F#9E2A8F

#9E2A8F is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.3% C 0.187 H 333.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#9E2A8F
RGBrgb(158, 42, 143)
HSLhsl(308, 58%, 39%)
HSVhsv(308, 73%, 62%)
CMYKcmyk(0%, 73.4%, 9.5%, 38%)
CIE-LABlab(39.43, 57.92, -30.15)
CIE-LCHlch(39.43, 65.29, 332.50°)
OKLaboklab(50.25% 0.1678 -0.0826)
OKLCHoklch(50.25% 0.187 333.8)
XYZxyz(19.8866, 10.9099, 27.0397)
Luminance0.1091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2A8F #2A9E39
analogous
#732A9E #9E2A8F #9E2A55
triadic
#9E2A8F #8F9E2A #2A8F9E
tetradic
#9E2A8F #9E732A #2A9E39 #2A559E
square
#9E2A8F #9E732A #2A9E39 #2A559E
split-complementary
#9E2A8F #559E2A #2A9E73
monochromatic
#3D1037 #6E1D63 #9E2A8F #CB3AB8 #D86BCA

Accessibility & contrast

On white

6.60
#9E2A8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9E2A8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2A8F
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2A8F#FFFFFF#000000##FFFFFF
##9E2A8F1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275292
Deuteranopia (green-blind)
#51638C
Tritanopia (blue-blind)
#A5355A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e2a8f;
/* rgb */ color: rgb(158, 42, 143);
/* oklch */ color: oklch(50.3% 0.187 333.8);
Tailwind
colors: {
  custom: {
    50: '#be6fb0',
    500: '#9e2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #9e2a8f;
$custom-light: #be6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2a8f",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 307.759,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50253,
    "c": 0.18705,
    "h": 333.8
  },
  "luminance": 0.10908
}

Semantic roles & 50–950 ramp

primary
#9E2A8F
secondary
#66BE71
accent
#E15B47
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #9E2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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