#9E47A2#9E47A2

#9E47A2 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.5% C 0.163 H 325.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9E47A2
RGBrgb(158, 71, 162)
HSLhsl(297, 39%, 46%)
HSVhsv(297, 56%, 64%)
CMYKcmyk(2.5%, 56.2%, 0%, 36.5%)
CIE-LABlab(44.78, 49.03, -33.18)
CIE-LCHlch(44.78, 59.20, 325.91°)
OKLaboklab(54.46% 0.1348 -0.0916)
OKLCHoklch(54.46% 0.163 325.8)
XYZxyz(22.8749, 14.3855, 35.7472)
Luminance0.1438 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E47A2 #4BA247
analogous
#7047A2 #9E47A2 #A24778
triadic
#9E47A2 #A29E47 #47A29E
tetradic
#9E47A2 #A27047 #4BA247 #4778A2
square
#9E47A2 #A27047 #4BA247 #4778A2
split-complementary
#9E47A2 #78A247 #47A270
monochromatic
#4B224D #743477 #9E47A2 #BA69BD #CD94D0

Accessibility & contrast

On white

5.42
#9E47A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9E47A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E47A2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E47A2#FFFFFF#000000##FFFFFF
##9E47A21.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B63A5
Deuteranopia (green-blind)
#586E9F
Tritanopia (blue-blind)
#A2526E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9e47a2;
/* rgb */ color: rgb(158, 71, 162);
/* oklch */ color: oklch(54.5% 0.163 325.8);
Tailwind
colors: {
  custom: {
    50: '#bd7fbe',
    500: '#9e47a2',
    950: '#000000',
  },
}
SCSS
$custom: #9e47a2;
$custom-light: #bd7fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9e47a2",
  "rgb": {
    "r": 158,
    "g": 71,
    "b": 162
  },
  "hsl": {
    "h": 297.363,
    "s": 39.056,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54456,
    "c": 0.16293,
    "h": 325.8
  },
  "luminance": 0.14384
}

Semantic roles & 50–950 ramp

primary
#9E47A2
secondary
#8BBC89
accent
#CF595E
background
#FBF7FB
surface
#F7EEF7
border
#D0C9D0
text
#120A12
muted
#817C81

Preview Lab

Preview with #9E47A2

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

Preview Lab → · Contrast checker → · Palette generator →

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