#9846CA#9846CA

#9846CA is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.0% C 0.201 H 310.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9846CA
RGBrgb(152, 70, 202)
HSLhsl(277, 55%, 53%)
HSVhsv(277, 65%, 79%)
CMYKcmyk(24.8%, 65.3%, 0%, 20.8%)
CIE-LABlab(46.07, 56.19, -54.61)
CIE-LCHlch(46.07, 78.35, 315.82°)
OKLaboklab(55.96% 0.1294 -0.1542)
OKLCHoklch(55.96% 0.201 310)
XYZxyz(25.7977, 15.3205, 57.4638)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846CA #78CA46
analogous
#5646CA #9846CA #CA46BA
triadic
#9846CA #CA9846 #46CA98
tetradic
#9846CA #CA5646 #78CA46 #46BACA
square
#9846CA #CA5646 #78CA46 #46BACA
split-complementary
#9846CA #BACA46 #46CA56
monochromatic
#552174 #782FA4 #9846CA #B276D8 #CDA5E5

Accessibility & contrast

On white

5.17
#9846CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9846CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846CA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846CA#FFFFFF#000000##FFFFFF
##9846CA1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#336EC7
Tritanopia (blue-blind)
#916182
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9846ca;
/* rgb */ color: rgb(152, 70, 202);
/* oklch */ color: oklch(56.0% 0.201 310.0);
Tailwind
colors: {
  custom: {
    50: '#ba7fdb',
    500: '#9846ca',
    950: '#000000',
  },
}
SCSS
$custom: #9846ca;
$custom-light: #ba7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9846ca",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 202
  },
  "hsl": {
    "h": 277.273,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55957,
    "c": 0.20128,
    "h": 310
  },
  "luminance": 0.1532
}

Semantic roles & 50–950 ramp

primary
#9846CA
secondary
#AFD29A
accent
#DF4982
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9846CA

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

Preview Lab → · Contrast checker → · Palette generator →

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