#9842E9#9842E9

#9842E9 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.7% C 0.237 H 303.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9842E9
RGBrgb(152, 66, 233)
HSLhsl(271, 79%, 59%)
HSVhsv(271, 72%, 91%)
CMYKcmyk(34.8%, 71.7%, 0%, 8.6%)
CIE-LABlab(47.57, 64.93, -69.89)
CIE-LCHlch(47.57, 95.39, 312.89°)
OKLaboklab(57.7% 0.1295 -0.1991)
OKLCHoklch(57.7% 0.237 303)
XYZxyz(29.6016, 16.4550, 78.6916)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842E9 #93E942
analogous
#4442E9 #9842E9 #E942E7
triadic
#9842E9 #E99842 #42E998
tetradic
#9842E9 #E94442 #93E942 #42E7E9
square
#9842E9 #E94442 #93E942 #42E7E9
split-complementary
#9842E9 #E7E942 #42E944
monochromatic
#5A129E #7A19D5 #9842E9 #B679EF #D4B0F6

Accessibility & contrast

On white

4.89
#9842E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#9842E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842E9
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842E9#FFFFFF#000000##FFFFFF
##9842E91.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEE
Deuteranopia (green-blind)
#0070E6
Tritanopia (blue-blind)
#886B92
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9842e9;
/* rgb */ color: rgb(152, 66, 233);
/* oklch */ color: oklch(57.7% 0.237 303.0);
Tailwind
colors: {
  custom: {
    50: '#bc7ef1',
    500: '#9842e9',
    950: '#000000',
  },
}
SCSS
$custom: #9842e9;
$custom-light: #bc7ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#9842e9",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 233
  },
  "hsl": {
    "h": 270.898,
    "s": 79.147,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57699,
    "c": 0.23749,
    "h": 303
  },
  "luminance": 0.16455
}

Semantic roles & 50–950 ramp

primary
#9842E9
secondary
#C2E4A2
accent
#F63291
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9842E9

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

Preview Lab → · Contrast checker → · Palette generator →

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