#9842E0#9842E0

#9842E0 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.0% C 0.229 H 305.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9842E0
RGBrgb(152, 66, 224)
HSLhsl(273, 72%, 57%)
HSVhsv(273, 71%, 88%)
CMYKcmyk(32.1%, 70.5%, 0%, 12.2%)
CIE-LABlab(46.91, 62.89, -65.84)
CIE-LCHlch(46.91, 91.05, 313.68°)
OKLaboklab(57.03% 0.1311 -0.1872)
OKLCHoklch(57.03% 0.229 305)
XYZxyz(28.3486, 15.9538, 72.0925)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842E0 #8AE042
analogous
#4942E0 #9842E0 #E042D9
triadic
#9842E0 #E09842 #42E098
tetradic
#9842E0 #E04942 #8AE042 #42D9E0
square
#9842E0 #E04942 #8AE042 #42D9E0
split-complementary
#9842E0 #D9E042 #42E049
monochromatic
#591890 #7A20C5 #9842E0 #B577E9 #D1ABF1

Accessibility & contrast

On white

5.01
#9842E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9842E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842E0
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842E0#FFFFFF#000000##FFFFFF
##9842E01.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE5
Deuteranopia (green-blind)
#006FDD
Tritanopia (blue-blind)
#8B678D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9842e0;
/* rgb */ color: rgb(152, 66, 224);
/* oklch */ color: oklch(57.0% 0.229 305.0);
Tailwind
colors: {
  custom: {
    50: '#bc7deb',
    500: '#9842e0',
    950: '#000000',
  },
}
SCSS
$custom: #9842e0;
$custom-light: #bc7deb;
$custom-dark: #000000;
JSON
{
  "hex": "#9842e0",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 272.658,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57032,
    "c": 0.22851,
    "h": 305
  },
  "luminance": 0.15954
}

Semantic roles & 50–950 ramp

primary
#9842E0
secondary
#BCDF9F
accent
#EF398C
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9842E0

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

Preview Lab → · Contrast checker → · Palette generator →

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