#9841EA#9841EA

#9841EA is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.7% C 0.240 H 302.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9841EA
RGBrgb(152, 65, 234)
HSLhsl(271, 80%, 59%)
HSVhsv(271, 72%, 92%)
CMYKcmyk(35%, 72.2%, 0%, 8.2%)
CIE-LABlab(47.49, 65.58, -70.57)
CIE-LCHlch(47.49, 96.34, 312.90°)
OKLaboklab(57.67% 0.1302 -0.2011)
OKLCHoklch(57.67% 0.24 302.9)
XYZxyz(29.6870, 16.3965, 79.4268)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841EA #93EA41
analogous
#4341EA #9841EA #EA41E7
triadic
#9841EA #EA9841 #41EA98
tetradic
#9841EA #EA4341 #93EA41 #41E7EA
square
#9841EA #EA4341 #93EA41 #41E7EA
split-complementary
#9841EA #E7EA41 #41EA43
monochromatic
#5A129F #7A18D6 #9841EA #B678F0 #D4AFF6

Accessibility & contrast

On white

4.91
#9841EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9841EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841EA
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841EA#FFFFFF#000000##FFFFFF
##9841EA1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#0070E7
Tritanopia (blue-blind)
#876B92
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9841ea;
/* rgb */ color: rgb(152, 65, 234);
/* oklch */ color: oklch(57.7% 0.240 302.9);
Tailwind
colors: {
  custom: {
    50: '#bd7df2',
    500: '#9841ea',
    950: '#000000',
  },
}
SCSS
$custom: #9841ea;
$custom-light: #bd7df2;
$custom-dark: #000000;
JSON
{
  "hex": "#9841ea",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 234
  },
  "hsl": {
    "h": 270.888,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57669,
    "c": 0.23957,
    "h": 302.9
  },
  "luminance": 0.16397
}

Semantic roles & 50–950 ramp

primary
#9841EA
secondary
#C2E5A2
accent
#F73191
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9841EA

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

Preview Lab → · Contrast checker → · Palette generator →

#9841EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva