#9842DE#9842DE

#9842DE is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.9% C 0.227 H 305.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9842DE
RGBrgb(152, 66, 222)
HSLhsl(273, 70%, 56%)
HSVhsv(273, 70%, 87%)
CMYKcmyk(31.5%, 70.3%, 0%, 12.9%)
CIE-LABlab(46.77, 62.44, -64.94)
CIE-LCHlch(46.77, 90.08, 313.88°)
OKLaboklab(56.89% 0.1314 -0.1845)
OKLCHoklch(56.89% 0.227 305.4)
XYZxyz(28.0790, 15.8460, 70.6724)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842DE #88DE42
analogous
#4A42DE #9842DE #DE42D6
triadic
#9842DE #DE9842 #42DE98
tetradic
#9842DE #DE4A42 #88DE42 #42D6DE
square
#9842DE #DE4A42 #88DE42 #42D6DE
split-complementary
#9842DE #D6DE42 #42DE4A
monochromatic
#59198D #7A22C1 #9842DE #B476E7 #D1AAF0

Accessibility & contrast

On white

5.04
#9842DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9842DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842DE
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842DE#FFFFFF#000000##FFFFFF
##9842DE1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE3
Deuteranopia (green-blind)
#006FDB
Tritanopia (blue-blind)
#8B668C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9842de;
/* rgb */ color: rgb(152, 66, 222);
/* oklch */ color: oklch(56.9% 0.227 305.4);
Tailwind
colors: {
  custom: {
    50: '#bc7de9',
    500: '#9842de',
    950: '#000000',
  },
}
SCSS
$custom: #9842de;
$custom-light: #bc7de9;
$custom-dark: #000000;
JSON
{
  "hex": "#9842de",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 273.077,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56886,
    "c": 0.22651,
    "h": 305.4
  },
  "luminance": 0.15846
}

Semantic roles & 50–950 ramp

primary
#9842DE
secondary
#BBDE9E
accent
#ED3B8B
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9842DE

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

Preview Lab → · Contrast checker → · Palette generator →

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