#9E2F8D#9E2F8D

#9E2F8D is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.6% C 0.180 H 334.7°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#9E2F8D
RGBrgb(158, 47, 141)
HSLhsl(309, 54%, 40%)
HSVhsv(309, 70%, 62%)
CMYKcmyk(0%, 70.3%, 10.8%, 38%)
CIE-LABlab(39.96, 55.82, -28.09)
CIE-LCHlch(39.96, 62.49, 333.28°)
OKLaboklab(50.6% 0.1624 -0.0767)
OKLCHoklch(50.6% 0.18 334.7)
XYZxyz(19.9250, 11.2269, 26.3118)
Luminance0.1123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F8D #2F9E40
analogous
#772F9E #9E2F8D #9E2F56
triadic
#9E2F8D #8D9E2F #2F8D9E
tetradic
#9E2F8D #9E772F #2F9E40 #2F569E
square
#9E2F8D #9E772F #2F9E40 #2F569E
split-complementary
#9E2F8D #569E2F #2F9E77
monochromatic
#401339 #6F2163 #9E2F8D #C743B3 #D572C6

Accessibility & contrast

On white

6.47
#9E2F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9E2F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2F8D
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F8D#FFFFFF#000000##FFFFFF
##9E2F8D1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5490
Deuteranopia (green-blind)
#54648A
Tritanopia (blue-blind)
#A6385A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9e2f8d;
/* rgb */ color: rgb(158, 47, 141);
/* oklch */ color: oklch(50.6% 0.180 334.7);
Tailwind
colors: {
  custom: {
    50: '#be71ae',
    500: '#9e2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f8d;
$custom-light: #be71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f8d",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 309.189,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50604,
    "c": 0.1796,
    "h": 334.7
  },
  "luminance": 0.11225
}

Semantic roles & 50–950 ramp

primary
#9E2F8D
secondary
#6CBD78
accent
#DE614A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9E2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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