#9846CC#9846CC

#9846CC is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.1% C 0.203 H 309.5°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9846CC
RGBrgb(152, 70, 204)
HSLhsl(277, 57%, 54%)
HSVhsv(277, 66%, 80%)
CMYKcmyk(25.5%, 65.7%, 0%, 20%)
CIE-LABlab(46.20, 56.63, -55.55)
CIE-LCHlch(46.20, 79.33, 315.55°)
OKLaboklab(56.09% 0.1292 -0.157)
OKLCHoklch(56.09% 0.203 309.5)
XYZxyz(26.0360, 15.4158, 58.7190)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846CC #7ACC46
analogous
#5546CC #9846CC #CC46BD
triadic
#9846CC #CC9846 #46CC98
tetradic
#9846CC #CC5546 #7ACC46 #46BDCC
square
#9846CC #CC5546 #7ACC46 #46BDCC
split-complementary
#9846CC #BDCC46 #46CC55
monochromatic
#552177 #782EA7 #9846CC #B376D9 #CDA6E6

Accessibility & contrast

On white

5.14
#9846CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9846CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846CC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846CC#FFFFFF#000000##FFFFFF
##9846CC1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#316FC9
Tritanopia (blue-blind)
#916283
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9846cc;
/* rgb */ color: rgb(152, 70, 204);
/* oklch */ color: oklch(56.1% 0.203 309.5);
Tailwind
colors: {
  custom: {
    50: '#ba7fdc',
    500: '#9846cc',
    950: '#000000',
  },
}
SCSS
$custom: #9846cc;
$custom-light: #ba7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9846cc",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 276.716,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5609,
    "c": 0.20332,
    "h": 309.5
  },
  "luminance": 0.15415
}

Semantic roles & 50–950 ramp

primary
#9846CC
secondary
#B0D49A
accent
#E04883
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9846CC

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

Preview Lab → · Contrast checker → · Palette generator →

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