#9E2F9D#9E2F9D

#9E2F9D is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.5% C 0.192 H 328.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9E2F9D
RGBrgb(158, 47, 157)
HSLhsl(301, 54%, 40%)
HSVhsv(301, 70%, 62%)
CMYKcmyk(0%, 70.3%, 0.6%, 38%)
CIE-LABlab(40.80, 58.43, -36.47)
CIE-LCHlch(40.80, 68.88, 328.03°)
OKLaboklab(51.48% 0.1634 -0.1009)
OKLCHoklch(51.48% 0.192 328.3)
XYZxyz(21.2026, 11.7380, 33.0407)
Luminance0.1174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F9D #2F9E30
analogous
#682F9E #9E2F9D #9E2F65
triadic
#9E2F9D #9D9E2F #2F9D9E
tetradic
#9E2F9D #9E682F #2F9E30 #2F659E
square
#9E2F9D #9E682F #2F9E30 #2F659E
split-complementary
#9E2F9D #659E2F #2F9E68
monochromatic
#40133F #6F216E #9E2F9D #C743C6 #D572D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E2F9D#FFFFFF#000000##FFFFFF
##9E2F9D1.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)
#1E57A0
Deuteranopia (green-blind)
#4C659A
Tritanopia (blue-blind)
#A33F63
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9e2f9d;
/* rgb */ color: rgb(158, 47, 157);
/* oklch */ color: oklch(51.5% 0.192 328.3);
Tailwind
colors: {
  custom: {
    50: '#be72ba',
    500: '#9e2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f9d;
$custom-light: #be72ba;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f9d",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 300.541,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51479,
    "c": 0.19204,
    "h": 328.3
  },
  "luminance": 0.11736
}

Semantic roles & 50–950 ramp

primary
#9E2F9D
secondary
#6CBD6D
accent
#DE4C4A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9E2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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