#9846CD#9846CD

#9846CD is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.2% C 0.204 H 309.2°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9846CD
RGBrgb(152, 70, 205)
HSLhsl(276, 57%, 54%)
HSVhsv(276, 66%, 80%)
CMYKcmyk(25.9%, 65.9%, 0%, 19.6%)
CIE-LABlab(46.26, 56.85, -56.03)
CIE-LCHlch(46.26, 79.82, 315.42°)
OKLaboklab(56.16% 0.1291 -0.1584)
OKLCHoklch(56.16% 0.204 309.2)
XYZxyz(26.1563, 15.4640, 59.3527)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846CD #7BCD46
analogous
#5546CD #9846CD #CD46BF
triadic
#9846CD #CD9846 #46CD98
tetradic
#9846CD #CD5546 #7BCD46 #46BFCD
square
#9846CD #CD5546 #7BCD46 #46BFCD
split-complementary
#9846CD #BFCD46 #46CD55
monochromatic
#562078 #782DA8 #9846CD #B376DA #CEA6E7

Accessibility & contrast

On white

5.13
#9846CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9846CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846CD
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846CD#FFFFFF#000000##FFFFFF
##9846CD1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#2F6FCA
Tritanopia (blue-blind)
#906284
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9846cd;
/* rgb */ color: rgb(152, 70, 205);
/* oklch */ color: oklch(56.2% 0.204 309.2);
Tailwind
colors: {
  custom: {
    50: '#ba7fdd',
    500: '#9846cd',
    950: '#000000',
  },
}
SCSS
$custom: #9846cd;
$custom-light: #ba7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9846cd",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 205
  },
  "hsl": {
    "h": 276.444,
    "s": 57.447,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56157,
    "c": 0.20435,
    "h": 309.2
  },
  "luminance": 0.15463
}

Semantic roles & 50–950 ramp

primary
#9846CD
secondary
#B1D49B
accent
#E14783
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9846CD

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

Preview Lab → · Contrast checker → · Palette generator →

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