#9846C8#9846C8

#9846C8 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.8% C 0.199 H 310.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9846C8
RGBrgb(152, 70, 200)
HSLhsl(278, 54%, 53%)
HSVhsv(278, 65%, 78%)
CMYKcmyk(24%, 65%, 0%, 21.6%)
CIE-LABlab(45.94, 55.75, -53.66)
CIE-LCHlch(45.94, 77.38, 316.10°)
OKLaboklab(55.83% 0.1295 -0.1514)
OKLCHoklch(55.83% 0.199 310.5)
XYZxyz(25.5624, 15.2264, 56.2248)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846C8 #76C846
analogous
#5746C8 #9846C8 #C846B7
triadic
#9846C8 #C89846 #46C898
tetradic
#9846C8 #C85746 #76C846 #46B7C8
square
#9846C8 #C85746 #76C846 #46B7C8
split-complementary
#9846C8 #B7C846 #46C857
monochromatic
#542272 #7730A1 #9846C8 #B275D6 #CDA4E4

Accessibility & contrast

On white

5.19
#9846C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9846C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846C8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846C8#FFFFFF#000000##FFFFFF
##9846C81.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#366EC5
Tritanopia (blue-blind)
#926081
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9846c8;
/* rgb */ color: rgb(152, 70, 200);
/* oklch */ color: oklch(55.8% 0.199 310.5);
Tailwind
colors: {
  custom: {
    50: '#ba7fd9',
    500: '#9846c8',
    950: '#000000',
  },
}
SCSS
$custom: #9846c8;
$custom-light: #ba7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9846c8",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 200
  },
  "hsl": {
    "h": 277.846,
    "s": 54.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55825,
    "c": 0.19924,
    "h": 310.5
  },
  "luminance": 0.15226
}

Semantic roles & 50–950 ramp

primary
#9846C8
secondary
#AED199
accent
#DE4A81
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9846C8

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

Preview Lab → · Contrast checker → · Palette generator →

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