#9D46E4#9D46E4

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

Color values

HEX#9D46E4
RGBrgb(157, 70, 228)
HSLhsl(273, 75%, 58%)
HSVhsv(273, 69%, 89%)
CMYKcmyk(31.1%, 69.3%, 0%, 10.6%)
CIE-LABlab(48.45, 63.00, -65.60)
CIE-LCHlch(48.45, 90.95, 313.84°)
OKLaboklab(58.35% 0.1331 -0.1863)
OKLCHoklch(58.35% 0.229 305.5)
XYZxyz(30.0953, 17.1501, 75.1086)
Luminance0.1715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D46E4 #8DE446
analogous
#4E46E4 #9D46E4 #E446DC
triadic
#9D46E4 #E49D46 #46E49D
tetradic
#9D46E4 #E44E46 #8DE446 #46DCE4
square
#9D46E4 #E44E46 #8DE446 #46DCE4
split-complementary
#9D46E4 #DCE446 #46E44E
monochromatic
#5E1699 #7F1ECF #9D46E4 #B97BEC #D6B1F4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D46E4#FFFFFF#000000##FFFFFF
##9D46E41.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)
#0071E9
Deuteranopia (green-blind)
#0073E1
Tritanopia (blue-blind)
#906A90
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9d46e4;
/* rgb */ color: rgb(157, 70, 228);
/* oklch */ color: oklch(58.3% 0.229 305.5);
Tailwind
colors: {
  custom: {
    50: '#bf80ed',
    500: '#9d46e4',
    950: '#000000',
  },
}
SCSS
$custom: #9d46e4;
$custom-light: #bf80ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9d46e4",
  "rgb": {
    "r": 157,
    "g": 70,
    "b": 228
  },
  "hsl": {
    "h": 273.038,
    "s": 74.528,
    "l": 58.431
  },
  "oklch": {
    "l": 0.58348,
    "c": 0.22899,
    "h": 305.5
  },
  "luminance": 0.1715
}

Semantic roles & 50–950 ramp

primary
#9D46E4
secondary
#C0E2A4
accent
#F1378A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D46E4

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

Preview Lab → · Contrast checker → · Palette generator →

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