#9842DF#9842DF

#9842DF is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 57.0% C 0.228 H 305.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9842DF
RGBrgb(152, 66, 223)
HSLhsl(273, 71%, 57%)
HSVhsv(273, 70%, 87%)
CMYKcmyk(31.8%, 70.4%, 0%, 12.5%)
CIE-LABlab(46.84, 62.66, -65.39)
CIE-LCHlch(46.84, 90.57, 313.78°)
OKLaboklab(56.96% 0.1312 -0.1859)
OKLCHoklch(56.96% 0.228 305.2)
XYZxyz(28.2134, 15.8997, 71.3804)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842DF #89DF42
analogous
#4A42DF #9842DF #DF42D8
triadic
#9842DF #DF9842 #42DF98
tetradic
#9842DF #DF4A42 #89DF42 #42D8DF
square
#9842DF #DF4A42 #89DF42 #42D8DF
split-complementary
#9842DF #D8DF42 #42DF4A
monochromatic
#59188E #7A21C3 #9842DF #B576E8 #D1ABF1

Accessibility & contrast

On white

5.02
#9842DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9842DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842DF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842DF#FFFFFF#000000##FFFFFF
##9842DF1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE4
Deuteranopia (green-blind)
#006FDC
Tritanopia (blue-blind)
#8B678C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9842df;
/* rgb */ color: rgb(152, 66, 223);
/* oklch */ color: oklch(57.0% 0.228 305.2);
Tailwind
colors: {
  custom: {
    50: '#bc7dea',
    500: '#9842df',
    950: '#000000',
  },
}
SCSS
$custom: #9842df;
$custom-light: #bc7dea;
$custom-dark: #000000;
JSON
{
  "hex": "#9842df",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 272.866,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56959,
    "c": 0.22751,
    "h": 305.2
  },
  "luminance": 0.159
}

Semantic roles & 50–950 ramp

primary
#9842DF
secondary
#BBDF9E
accent
#EE3A8B
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9842DF

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

Preview Lab → · Contrast checker → · Palette generator →

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