#9846CB#9846CB

#9846CB is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.0% C 0.202 H 309.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9846CB
RGBrgb(152, 70, 203)
HSLhsl(277, 56%, 54%)
HSVhsv(277, 66%, 80%)
CMYKcmyk(25.1%, 65.5%, 0%, 20.4%)
CIE-LABlab(46.13, 56.41, -55.08)
CIE-LCHlch(46.13, 78.84, 315.68°)
OKLaboklab(56.02% 0.1293 -0.1556)
OKLCHoklch(56.02% 0.202 309.7)
XYZxyz(25.9164, 15.3680, 58.0894)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846CB #79CB46
analogous
#5546CB #9846CB #CB46BC
triadic
#9846CB #CB9846 #46CB98
tetradic
#9846CB #CB5546 #79CB46 #46BCCB
square
#9846CB #CB5546 #79CB46 #46BCCB
split-complementary
#9846CB #BCCB46 #46CB55
monochromatic
#552176 #782EA5 #9846CB #B376D8 #CDA6E6

Accessibility & contrast

On white

5.16
#9846CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9846CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846CB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846CB#FFFFFF#000000##FFFFFF
##9846CB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#326FC8
Tritanopia (blue-blind)
#916183
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9846cb;
/* rgb */ color: rgb(152, 70, 203);
/* oklch */ color: oklch(56.0% 0.202 309.7);
Tailwind
colors: {
  custom: {
    50: '#ba7fdc',
    500: '#9846cb',
    950: '#000000',
  },
}
SCSS
$custom: #9846cb;
$custom-light: #ba7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9846cb",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 276.992,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56023,
    "c": 0.2023,
    "h": 309.7
  },
  "luminance": 0.15368
}

Semantic roles & 50–950 ramp

primary
#9846CB
secondary
#B0D39A
accent
#DF4882
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9846CB

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

Preview Lab → · Contrast checker → · Palette generator →

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