#9846D9#9846D9

#9846D9 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.0% C 0.217 H 306.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9846D9
RGBrgb(152, 70, 217)
HSLhsl(273, 66%, 56%)
HSVhsv(273, 68%, 85%)
CMYKcmyk(30%, 67.7%, 0%, 14.9%)
CIE-LABlab(47.06, 59.53, -61.62)
CIE-LCHlch(47.06, 85.68, 314.01°)
OKLaboklab(56.98% 0.128 -0.1748)
OKLCHoklch(56.98% 0.217 306.2)
XYZxyz(27.6607, 16.0657, 67.2760)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846D9 #87D946
analogous
#4F46D9 #9846D9 #D946D1
triadic
#9846D9 #D99846 #46D998
tetradic
#9846D9 #D94F46 #87D946 #46D1D9
square
#9846D9 #D94F46 #87D946 #46D1D9
split-complementary
#9846D9 #D1D946 #46D94F
monochromatic
#591C89 #7A26BB #9846D9 #B479E3 #D1ACEE

Accessibility & contrast

On white

4.98
#9846D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#9846D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846D9
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846D9#FFFFFF#000000##FFFFFF
##9846D91.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#1970D6
Tritanopia (blue-blind)
#8D678A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9846d9;
/* rgb */ color: rgb(152, 70, 217);
/* oklch */ color: oklch(57.0% 0.217 306.2);
Tailwind
colors: {
  custom: {
    50: '#bb7fe6',
    500: '#9846d9',
    950: '#000000',
  },
}
SCSS
$custom: #9846d9;
$custom-light: #bb7fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#9846d9",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 217
  },
  "hsl": {
    "h": 273.469,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56983,
    "c": 0.21663,
    "h": 306.2
  },
  "luminance": 0.16065
}

Semantic roles & 50–950 ramp

primary
#9846D9
secondary
#BADC9F
accent
#E93F8A
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9846D9

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

Preview Lab → · Contrast checker → · Palette generator →

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