#9842E1#9842E1

#9842E1 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.1% C 0.230 H 304.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9842E1
RGBrgb(152, 66, 225)
HSLhsl(272, 73%, 57%)
HSVhsv(272, 71%, 88%)
CMYKcmyk(32.4%, 70.7%, 0%, 11.8%)
CIE-LABlab(46.99, 63.11, -66.30)
CIE-LCHlch(46.99, 91.53, 313.59°)
OKLaboklab(57.11% 0.1309 -0.1885)
OKLCHoklch(57.11% 0.23 304.8)
XYZxyz(28.4847, 16.0082, 72.8088)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842E1 #8BE142
analogous
#4942E1 #9842E1 #E142DA
triadic
#9842E1 #E19842 #42E198
tetradic
#9842E1 #E14942 #8BE142 #42DAE1
square
#9842E1 #E14942 #8BE142 #42DAE1
split-complementary
#9842E1 #DAE142 #42E149
monochromatic
#591792 #7A1FC6 #9842E1 #B577E9 #D2ACF2

Accessibility & contrast

On white

5.00
#9842E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#9842E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842E1
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842E1#FFFFFF#000000##FFFFFF
##9842E11.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#006FDE
Tritanopia (blue-blind)
#8A688D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9842e1;
/* rgb */ color: rgb(152, 66, 225);
/* oklch */ color: oklch(57.1% 0.230 304.8);
Tailwind
colors: {
  custom: {
    50: '#bc7deb',
    500: '#9842e1',
    950: '#000000',
  },
}
SCSS
$custom: #9842e1;
$custom-light: #bc7deb;
$custom-dark: #000000;
JSON
{
  "hex": "#9842e1",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 272.453,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57105,
    "c": 0.22951,
    "h": 304.8
  },
  "luminance": 0.16008
}

Semantic roles & 50–950 ramp

primary
#9842E1
secondary
#BDE09F
accent
#EF388C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9842E1

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

Preview Lab → · Contrast checker → · Palette generator →

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