#9D46D2#9D46D2

#9D46D2 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.1% C 0.211 H 309.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9D46D2
RGBrgb(157, 70, 210)
HSLhsl(277, 61%, 55%)
HSVhsv(277, 67%, 82%)
CMYKcmyk(25.2%, 66.7%, 0%, 17.6%)
CIE-LABlab(47.24, 59.02, -57.30)
CIE-LCHlch(47.24, 82.26, 315.85°)
OKLaboklab(57.1% 0.1352 -0.1619)
OKLCHoklch(57.1% 0.211 309.9)
XYZxyz(27.7254, 16.2021, 62.6270)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D46D2 #7BD246
analogous
#5746D2 #9D46D2 #D246C1
triadic
#9D46D2 #D29D46 #46D29D
tetradic
#9D46D2 #D25746 #7BD246 #46C1D2
square
#9D46D2 #D25746 #7BD246 #46C1D2
split-complementary
#9D46D2 #C1D246 #46D257
monochromatic
#5A1F7F #7E2BB0 #9D46D2 #B777DE #D1A8EA

Accessibility & contrast

On white

4.95
#9D46D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9D46D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D46D2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D46D2#FFFFFF#000000##FFFFFF
##9D46D21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#3071CF
Tritanopia (blue-blind)
#966386
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9d46d2;
/* rgb */ color: rgb(157, 70, 210);
/* oklch */ color: oklch(57.1% 0.211 309.9);
Tailwind
colors: {
  custom: {
    50: '#be7fe1',
    500: '#9d46d2',
    950: '#000000',
  },
}
SCSS
$custom: #9d46d2;
$custom-light: #be7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d46d2",
  "rgb": {
    "r": 157,
    "g": 70,
    "b": 210
  },
  "hsl": {
    "h": 277.286,
    "s": 60.87,
    "l": 54.902
  },
  "oklch": {
    "l": 0.571,
    "c": 0.21093,
    "h": 309.9
  },
  "luminance": 0.16202
}

Semantic roles & 50–950 ramp

primary
#9D46D2
secondary
#B3D79C
accent
#E44480
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #9D46D2

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

Preview Lab → · Contrast checker → · Palette generator →

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