#9846E4#9846E4

#9846E4 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.8% C 0.228 H 303.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9846E4
RGBrgb(152, 70, 228)
HSLhsl(271, 75%, 58%)
HSVhsv(271, 69%, 89%)
CMYKcmyk(33.3%, 69.3%, 0%, 10.6%)
CIE-LABlab(47.83, 62.04, -66.64)
CIE-LCHlch(47.83, 91.04, 312.95°)
OKLaboklab(57.77% 0.1265 -0.1895)
OKLCHoklch(57.77% 0.228 303.7)
XYZxyz(29.1394, 16.6572, 75.0638)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846E4 #92E446
analogous
#4946E4 #9846E4 #E446E1
triadic
#9846E4 #E49846 #46E498
tetradic
#9846E4 #E44946 #92E446 #46E1E4
square
#9846E4 #E44946 #92E446 #46E1E4
split-complementary
#9846E4 #E1E446 #46E449
monochromatic
#5A1699 #7A1ECF #9846E4 #B67BEC #D3B1F4

Accessibility & contrast

On white

4.85
#9846E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#9846E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846E4
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846E4#FFFFFF#000000##FFFFFF
##9846E41.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E9
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#896B90
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9846e4;
/* rgb */ color: rgb(152, 70, 228);
/* oklch */ color: oklch(57.8% 0.228 303.7);
Tailwind
colors: {
  custom: {
    50: '#bc80ed',
    500: '#9846e4',
    950: '#000000',
  },
}
SCSS
$custom: #9846e4;
$custom-light: #bc80ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9846e4",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 228
  },
  "hsl": {
    "h": 271.139,
    "s": 74.528,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5777,
    "c": 0.22788,
    "h": 303.7
  },
  "luminance": 0.16657
}

Semantic roles & 50–950 ramp

primary
#9846E4
secondary
#C2E2A4
accent
#F13790
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9846E4

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

Preview Lab → · Contrast checker → · Palette generator →

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