#9842D8#9842D8

#9842D8 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.5% C 0.221 H 306.8°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9842D8
RGBrgb(152, 66, 216)
HSLhsl(274, 66%, 55%)
HSVhsv(274, 69%, 85%)
CMYKcmyk(29.6%, 69.4%, 0%, 15.3%)
CIE-LABlab(46.35, 61.10, -62.20)
CIE-LCHlch(46.35, 87.18, 314.49°)
OKLaboklab(56.46% 0.1322 -0.1765)
OKLCHoklch(56.46% 0.221 306.8)
XYZxyz(27.2891, 15.5300, 66.5124)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842D8 #82D842
analogous
#4D42D8 #9842D8 #D842CD
triadic
#9842D8 #D89842 #42D898
tetradic
#9842D8 #D84D42 #82D842 #42CDD8
square
#9842D8 #D84D42 #82D842 #42CDD8
split-complementary
#9842D8 #CDD842 #42D84D
monochromatic
#571B84 #7926B7 #9842D8 #B475E2 #CFA7ED

Accessibility & contrast

On white

5.11
#9842D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9842D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842D8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842D8#FFFFFF#000000##FFFFFF
##9842D81.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#116ED5
Tritanopia (blue-blind)
#8D6488
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9842d8;
/* rgb */ color: rgb(152, 66, 216);
/* oklch */ color: oklch(56.5% 0.221 306.8);
Tailwind
colors: {
  custom: {
    50: '#bb7de5',
    500: '#9842d8',
    950: '#000000',
  },
}
SCSS
$custom: #9842d8;
$custom-light: #bb7de5;
$custom-dark: #000000;
JSON
{
  "hex": "#9842d8",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 274.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56455,
    "c": 0.22051,
    "h": 306.8
  },
  "luminance": 0.1553
}

Semantic roles & 50–950 ramp

primary
#9842D8
secondary
#B6DA9C
accent
#E93F87
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9842D8

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

Preview Lab → · Contrast checker → · Palette generator →

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