#9D46CB#9D46CB

#9D46CB is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.6% C 0.204 H 311.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9D46CB
RGBrgb(157, 70, 203)
HSLhsl(279, 56%, 54%)
HSVhsv(279, 66%, 80%)
CMYKcmyk(22.7%, 65.5%, 0%, 20.4%)
CIE-LABlab(46.79, 57.51, -53.99)
CIE-LCHlch(46.79, 78.88, 316.81°)
OKLaboklab(56.64% 0.1357 -0.1522)
OKLCHoklch(56.64% 0.204 311.7)
XYZxyz(26.8723, 15.8609, 58.1342)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D46CB #74CB46
analogous
#5A46CB #9D46CB #CB46B6
triadic
#9D46CB #CB9D46 #46CB9D
tetradic
#9D46CB #CB5A46 #74CB46 #46B6CB
square
#9D46CB #CB5A46 #74CB46 #46B6CB
split-complementary
#9D46CB #B6CB46 #46CB5A
monochromatic
#582176 #7C2EA5 #9D46CB #B676D8 #D0A6E6

Accessibility & contrast

On white

5.03
#9D46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9D46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D46CB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D46CB#FFFFFF#000000##FFFFFF
##9D46CB1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#3971C8
Tritanopia (blue-blind)
#986183
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9d46cb;
/* rgb */ color: rgb(157, 70, 203);
/* oklch */ color: oklch(56.6% 0.204 311.7);
Tailwind
colors: {
  custom: {
    50: '#be7fdb',
    500: '#9d46cb',
    950: '#000000',
  },
}
SCSS
$custom: #9d46cb;
$custom-light: #be7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d46cb",
  "rgb": {
    "r": 157,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 279.248,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56636,
    "c": 0.20393,
    "h": 311.7
  },
  "luminance": 0.1586
}

Semantic roles & 50–950 ramp

primary
#9D46CB
secondary
#AED39A
accent
#DF487D
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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