#9842DD#9842DD

#9842DD is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.8% C 0.226 H 305.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9842DD
RGBrgb(152, 66, 221)
HSLhsl(273, 70%, 56%)
HSVhsv(273, 70%, 87%)
CMYKcmyk(31.2%, 70.1%, 0%, 13.3%)
CIE-LABlab(46.70, 62.21, -64.48)
CIE-LCHlch(46.70, 89.60, 313.97°)
OKLaboklab(56.81% 0.1315 -0.1832)
OKLCHoklch(56.81% 0.226 305.7)
XYZxyz(27.9454, 15.7925, 69.9686)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842DD #87DD42
analogous
#4B42DD #9842DD #DD42D5
triadic
#9842DD #DD9842 #42DD98
tetradic
#9842DD #DD4B42 #87DD42 #42D5DD
square
#9842DD #DD4B42 #87DD42 #42D5DD
split-complementary
#9842DD #D5DD42 #42DD4B
monochromatic
#59198C #7A22BF #9842DD #B476E6 #D1AAF0

Accessibility & contrast

On white

5.05
#9842DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9842DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842DD
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842DD#FFFFFF#000000##FFFFFF
##9842DD1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE2
Deuteranopia (green-blind)
#006FDA
Tritanopia (blue-blind)
#8C668B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9842dd;
/* rgb */ color: rgb(152, 66, 221);
/* oklch */ color: oklch(56.8% 0.226 305.7);
Tailwind
colors: {
  custom: {
    50: '#bc7de8',
    500: '#9842dd',
    950: '#000000',
  },
}
SCSS
$custom: #9842dd;
$custom-light: #bc7de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9842dd",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 273.29,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56814,
    "c": 0.22551,
    "h": 305.7
  },
  "luminance": 0.15792
}

Semantic roles & 50–950 ramp

primary
#9842DD
secondary
#BADD9D
accent
#EC3B8A
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9842DD

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

Preview Lab → · Contrast checker → · Palette generator →

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