#9E2F8E#9E2F8E

#9E2F8E is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.7% C 0.180 H 334.3°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#9E2F8E
RGBrgb(158, 47, 142)
HSLhsl(309, 54%, 40%)
HSVhsv(309, 70%, 62%)
CMYKcmyk(0%, 70.3%, 10.1%, 38%)
CIE-LABlab(40.01, 55.97, -28.62)
CIE-LCHlch(40.01, 62.87, 332.92°)
OKLaboklab(50.66% 0.1625 -0.0782)
OKLCHoklch(50.66% 0.18 334.3)
XYZxyz(19.9997, 11.2568, 26.7054)
Luminance0.1125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F8E #2F9E3F
analogous
#772F9E #9E2F8E #9E2F56
triadic
#9E2F8E #8E9E2F #2F8E9E
tetradic
#9E2F8E #9E772F #2F9E3F #2F569E
square
#9E2F8E #9E772F #2F9E3F #2F569E
split-complementary
#9E2F8E #569E2F #2F9E77
monochromatic
#401339 #6F2164 #9E2F8E #C743B4 #D572C7

Accessibility & contrast

On white

6.46
#9E2F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E2F8E
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F8E#FFFFFF#000000##FFFFFF
##9E2F8E1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5491
Deuteranopia (green-blind)
#54648B
Tritanopia (blue-blind)
#A5385B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9e2f8e;
/* rgb */ color: rgb(158, 47, 142);
/* oklch */ color: oklch(50.7% 0.180 334.3);
Tailwind
colors: {
  custom: {
    50: '#be72af',
    500: '#9e2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f8e;
$custom-light: #be72af;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f8e",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 308.649,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50657,
    "c": 0.18035,
    "h": 334.3
  },
  "luminance": 0.11255
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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