#9D47E2#9D47E2

#9D47E2 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.3% C 0.226 H 305.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9D47E2
RGBrgb(157, 71, 226)
HSLhsl(273, 73%, 58%)
HSVhsv(273, 69%, 89%)
CMYKcmyk(30.5%, 68.6%, 0%, 11.4%)
CIE-LABlab(48.47, 62.11, -64.43)
CIE-LCHlch(48.47, 89.49, 313.95°)
OKLaboklab(58.32% 0.1324 -0.1829)
OKLCHoklch(58.32% 0.226 305.9)
XYZxyz(29.8823, 17.1658, 73.6759)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D47E2 #8CE247
analogous
#4F47E2 #9D47E2 #E247DA
triadic
#9D47E2 #E29D47 #47E29D
tetradic
#9D47E2 #E24F47 #8CE247 #47DAE2
square
#9D47E2 #E24F47 #8CE247 #47DAE2
split-complementary
#9D47E2 #DAE247 #47E24F
monochromatic
#5E1897 #7F20CC #9D47E2 #B97CEA #D5B1F3

Accessibility & contrast

On white

4.74
#9D47E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#9D47E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D47E2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D47E2#FFFFFF#000000##FFFFFF
##9D47E21.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#0F73DF
Tritanopia (blue-blind)
#916A8F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9d47e2;
/* rgb */ color: rgb(157, 71, 226);
/* oklch */ color: oklch(58.3% 0.226 305.9);
Tailwind
colors: {
  custom: {
    50: '#bf81ec',
    500: '#9d47e2',
    950: '#000000',
  },
}
SCSS
$custom: #9d47e2;
$custom-light: #bf81ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9d47e2",
  "rgb": {
    "r": 157,
    "g": 71,
    "b": 226
  },
  "hsl": {
    "h": 273.29,
    "s": 72.77,
    "l": 58.235
  },
  "oklch": {
    "l": 0.58319,
    "c": 0.22578,
    "h": 305.9
  },
  "luminance": 0.17166
}

Semantic roles & 50–950 ramp

primary
#9D47E2
secondary
#BFE1A4
accent
#EF388A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D47E2

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

Preview Lab → · Contrast checker → · Palette generator →

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