#9842E3#9842E3

#9842E3 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.3% C 0.232 H 304.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9842E3
RGBrgb(152, 66, 227)
HSLhsl(272, 74%, 57%)
HSVhsv(272, 71%, 89%)
CMYKcmyk(33%, 70.9%, 0%, 11%)
CIE-LABlab(47.13, 63.56, -67.20)
CIE-LCHlch(47.13, 92.50, 313.41°)
OKLaboklab(57.25% 0.1306 -0.1912)
OKLCHoklch(57.25% 0.232 304.3)
XYZxyz(28.7591, 16.1180, 74.2541)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842E3 #8DE342
analogous
#4842E3 #9842E3 #E342DD
triadic
#9842E3 #E39842 #42E398
tetradic
#9842E3 #E34842 #8DE342 #42DDE3
square
#9842E3 #E34842 #8DE342 #42DDE3
split-complementary
#9842E3 #DDE342 #42E348
monochromatic
#5A1695 #7A1ECA #9842E3 #B577EB #D2ADF3

Accessibility & contrast

On white

4.97
#9842E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9842E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842E3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842E3#FFFFFF#000000##FFFFFF
##9842E31.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#0070E0
Tritanopia (blue-blind)
#8A688F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9842e3;
/* rgb */ color: rgb(152, 66, 227);
/* oklch */ color: oklch(57.3% 0.232 304.3);
Tailwind
colors: {
  custom: {
    50: '#bc7ded',
    500: '#9842e3',
    950: '#000000',
  },
}
SCSS
$custom: #9842e3;
$custom-light: #bc7ded;
$custom-dark: #000000;
JSON
{
  "hex": "#9842e3",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 227
  },
  "hsl": {
    "h": 272.05,
    "s": 74.194,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57252,
    "c": 0.2315,
    "h": 304.3
  },
  "luminance": 0.16118
}

Semantic roles & 50–950 ramp

primary
#9842E3
secondary
#BEE1A0
accent
#F1378E
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9842E3

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

Preview Lab → · Contrast checker → · Palette generator →

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