#9842EE#9842EE

#9842EE is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 58.1% C 0.242 H 302.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#9842EE
RGBrgb(152, 66, 238)
HSLhsl(270, 83%, 60%)
HSVhsv(270, 72%, 93%)
CMYKcmyk(36.1%, 72.3%, 0%, 6.7%)
CIE-LABlab(47.94, 66.07, -72.10)
CIE-LCHlch(47.94, 97.80, 312.50°)
OKLaboklab(58.08% 0.1286 -0.2056)
OKLCHoklch(58.08% 0.242 302)
XYZxyz(30.3260, 16.7448, 82.5067)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842EE #98EE42
analogous
#4242EE #9842EE #EE42EE
triadic
#9842EE #EE9842 #42EE98
tetradic
#9842EE #EE4242 #98EE42 #42EEEE
square
#9842EE #EE4242 #98EE42 #42EEEE
split-complementary
#9842EE #EEEE42 #42EE42
monochromatic
#5B0FA7 #7914DF #9842EE #B77AF3 #D5B2F8

Accessibility & contrast

On white

4.83
#9842EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#9842EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842EE
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842EE#FFFFFF#000000##FFFFFF
##9842EE1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F3
Deuteranopia (green-blind)
#0071EB
Tritanopia (blue-blind)
#866D95
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9842ee;
/* rgb */ color: rgb(152, 66, 238);
/* oklch */ color: oklch(58.1% 0.242 302.0);
Tailwind
colors: {
  custom: {
    50: '#bd7ef5',
    500: '#9842ee',
    950: '#000000',
  },
}
SCSS
$custom: #9842ee;
$custom-light: #bd7ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#9842ee",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 238
  },
  "hsl": {
    "h": 270,
    "s": 83.495,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58077,
    "c": 0.24247,
    "h": 302
  },
  "luminance": 0.16745
}

Semantic roles & 50–950 ramp

primary
#9842EE
secondary
#C6E7A5
accent
#FA2E94
background
#FCF8FF
surface
#F8EFFE
border
#D1CAD6
text
#130A17
muted
#827C85

Preview Lab

Preview with #9842EE

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

Preview Lab → · Contrast checker → · Palette generator →

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