#9D46DC#9D46DC

#9D46DC is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.8% C 0.221 H 307.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9D46DC
RGBrgb(157, 70, 220)
HSLhsl(275, 68%, 57%)
HSVhsv(275, 68%, 86%)
CMYKcmyk(28.6%, 68.2%, 0%, 13.7%)
CIE-LABlab(47.90, 61.21, -61.94)
CIE-LCHlch(47.90, 87.09, 314.66°)
OKLaboklab(57.78% 0.1342 -0.1756)
OKLCHoklch(57.78% 0.221 307.4)
XYZxyz(29.0103, 16.7161, 69.3945)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D46DC #85DC46
analogous
#5246DC #9D46DC #DC46D0
triadic
#9D46DC #DC9D46 #46DC9D
tetradic
#9D46DC #DC5246 #85DC46 #46D0DC
square
#9D46DC #DC5246 #85DC46 #46D0DC
split-complementary
#9D46DC #D0DC46 #46DC52
monochromatic
#5D1B8D #7F24C0 #9D46DC #B879E6 #D4ADEF

Accessibility & contrast

On white

4.84
#9D46DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#9D46DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D46DC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D46DC#FFFFFF#000000##FFFFFF
##9D46DC1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#1F72D9
Tritanopia (blue-blind)
#93678C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9d46dc;
/* rgb */ color: rgb(157, 70, 220);
/* oklch */ color: oklch(57.8% 0.221 307.4);
Tailwind
colors: {
  custom: {
    50: '#bf80e8',
    500: '#9d46dc',
    950: '#000000',
  },
}
SCSS
$custom: #9d46dc;
$custom-light: #bf80e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d46dc",
  "rgb": {
    "r": 157,
    "g": 70,
    "b": 220
  },
  "hsl": {
    "h": 274.8,
    "s": 68.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57784,
    "c": 0.22095,
    "h": 307.4
  },
  "luminance": 0.16716
}

Semantic roles & 50–950 ramp

primary
#9D46DC
secondary
#BADDA0
accent
#EB3D86
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D46DC

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

Preview Lab → · Contrast checker → · Palette generator →

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