#9846C7#9846C7

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

Color values

HEX#9846C7
RGBrgb(152, 70, 199)
HSLhsl(278, 54%, 53%)
HSVhsv(278, 65%, 78%)
CMYKcmyk(23.6%, 64.8%, 0%, 22%)
CIE-LABlab(45.88, 55.53, -53.18)
CIE-LCHlch(45.88, 76.89, 316.24°)
OKLaboklab(55.76% 0.1296 -0.15)
OKLCHoklch(55.76% 0.198 310.8)
XYZxyz(25.4459, 15.1798, 55.6113)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846C7 #75C746
analogous
#5846C7 #9846C7 #C746B5
triadic
#9846C7 #C79846 #46C798
tetradic
#9846C7 #C75846 #75C746 #46B5C7
square
#9846C7 #C75846 #75C746 #46B5C7
split-complementary
#9846C7 #B5C746 #46C758
monochromatic
#542271 #7730A0 #9846C7 #B275D5 #CCA4E3

Accessibility & contrast

On white

5.20
#9846C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9846C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846C7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846C7#FFFFFF#000000##FFFFFF
##9846C71.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#376EC4
Tritanopia (blue-blind)
#926080
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9846c7;
/* rgb */ color: rgb(152, 70, 199);
/* oklch */ color: oklch(55.8% 0.198 310.8);
Tailwind
colors: {
  custom: {
    50: '#ba7fd9',
    500: '#9846c7',
    950: '#000000',
  },
}
SCSS
$custom: #9846c7;
$custom-light: #ba7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9846c7",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 199
  },
  "hsl": {
    "h": 278.14,
    "s": 53.527,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55759,
    "c": 0.19821,
    "h": 310.8
  },
  "luminance": 0.15179
}

Semantic roles & 50–950 ramp

primary
#9846C7
secondary
#ADD098
accent
#DD4B80
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120A15
muted
#817C83

Preview Lab

Preview with #9846C7

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

Preview Lab → · Contrast checker → · Palette generator →

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