#9A46CB#9A46CB

#9A46CB is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.3% C 0.203 H 310.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9A46CB
RGBrgb(154, 70, 203)
HSLhsl(278, 56%, 54%)
HSVhsv(278, 66%, 80%)
CMYKcmyk(24.1%, 65.5%, 0%, 20.4%)
CIE-LABlab(46.40, 56.85, -54.65)
CIE-LCHlch(46.40, 78.85, 316.13°)
OKLaboklab(56.27% 0.1319 -0.1542)
OKLCHoklch(56.27% 0.203 310.5)
XYZxyz(26.2940, 15.5627, 58.1071)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A46CB #77CB46
analogous
#5746CB #9A46CB #CB46B9
triadic
#9A46CB #CB9A46 #46CB9A
tetradic
#9A46CB #CB5746 #77CB46 #46B9CB
square
#9A46CB #CB5746 #77CB46 #46B9CB
split-complementary
#9A46CB #B9CB46 #46CB57
monochromatic
#562176 #7A2EA5 #9A46CB #B476D8 #CEA6E6

Accessibility & contrast

On white

5.11
#9A46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9A46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A46CB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A46CB#FFFFFF#000000##FFFFFF
##9A46CB1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#356FC8
Tritanopia (blue-blind)
#946183
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9a46cb;
/* rgb */ color: rgb(154, 70, 203);
/* oklch */ color: oklch(56.3% 0.203 310.5);
Tailwind
colors: {
  custom: {
    50: '#bc7fdb',
    500: '#9a46cb',
    950: '#000000',
  },
}
SCSS
$custom: #9a46cb;
$custom-light: #bc7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a46cb",
  "rgb": {
    "r": 154,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 277.895,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56267,
    "c": 0.20293,
    "h": 310.5
  },
  "luminance": 0.15562
}

Semantic roles & 50–950 ramp

primary
#9A46CB
secondary
#AFD39A
accent
#DF4880
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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