#9846DB#9846DB

#9846DB is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.1% C 0.219 H 305.7°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9846DB
RGBrgb(152, 70, 219)
HSLhsl(273, 67%, 57%)
HSVhsv(273, 68%, 86%)
CMYKcmyk(30.6%, 68%, 0%, 14.1%)
CIE-LABlab(47.20, 59.98, -62.54)
CIE-LCHlch(47.20, 86.66, 313.80°)
OKLaboklab(57.12% 0.1277 -0.1775)
OKLCHoklch(57.12% 0.219 305.7)
XYZxyz(27.9224, 16.1704, 68.6543)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846DB #89DB46
analogous
#4E46DB #9846DB #DB46D4
triadic
#9846DB #DB9846 #46DB98
tetradic
#9846DB #DB4E46 #89DB46 #46D4DB
square
#9846DB #DB4E46 #89DB46 #46D4DB
split-complementary
#9846DB #D4DB46 #46DB4E
monochromatic
#591B8B #7A25BF #9846DB #B579E5 #D1ACEF

Accessibility & contrast

On white

4.96
#9846DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#9846DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846DB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846DB#FFFFFF#000000##FFFFFF
##9846DB1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#1370D8
Tritanopia (blue-blind)
#8C678B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9846db;
/* rgb */ color: rgb(152, 70, 219);
/* oklch */ color: oklch(57.1% 0.219 305.7);
Tailwind
colors: {
  custom: {
    50: '#bb7fe7',
    500: '#9846db',
    950: '#000000',
  },
}
SCSS
$custom: #9846db;
$custom-light: #bb7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#9846db",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 219
  },
  "hsl": {
    "h": 273.02,
    "s": 67.421,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57124,
    "c": 0.21869,
    "h": 305.7
  },
  "luminance": 0.1617
}

Semantic roles & 50–950 ramp

primary
#9846DB
secondary
#BBDDA0
accent
#EA3D8B
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9846DB

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

Preview Lab → · Contrast checker → · Palette generator →

#9846DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva