#9842CC#9842CC

#9842CC is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.209 H 309.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9842CC
RGBrgb(152, 66, 204)
HSLhsl(277, 58%, 53%)
HSVhsv(277, 68%, 80%)
CMYKcmyk(25.5%, 67.6%, 0%, 20%)
CIE-LABlab(45.54, 58.45, -56.61)
CIE-LCHlch(45.54, 81.38, 315.92°)
OKLaboklab(55.62% 0.1336 -0.1601)
OKLCHoklch(55.62% 0.209 309.9)
XYZxyz(25.7941, 14.9320, 58.6384)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842CC #76CC42
analogous
#5342CC #9842CC #CC42BB
triadic
#9842CC #CC9842 #42CC98
tetradic
#9842CC #CC5342 #76CC42 #42BBCC
square
#9842CC #CC5342 #76CC42 #42BBCC
split-complementary
#9842CC #BBCC42 #42CC53
monochromatic
#541F74 #772CA4 #9842CC #B272D9 #CDA2E6

Accessibility & contrast

On white

5.27
#9842CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9842CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842CC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842CC#FFFFFF#000000##FFFFFF
##9842CC1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#2B6DC9
Tritanopia (blue-blind)
#915F82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9842cc;
/* rgb */ color: rgb(152, 66, 204);
/* oklch */ color: oklch(55.6% 0.209 309.9);
Tailwind
colors: {
  custom: {
    50: '#bb7ddc',
    500: '#9842cc',
    950: '#000000',
  },
}
SCSS
$custom: #9842cc;
$custom-light: #bb7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9842cc",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 277.391,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55618,
    "c": 0.20851,
    "h": 309.9
  },
  "luminance": 0.14931
}

Semantic roles & 50–950 ramp

primary
#9842CC
secondary
#AED397
accent
#E14781
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9842CC

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

Preview Lab → · Contrast checker → · Palette generator →

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