#9841D8#9841D8

#9841D8 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.222 H 306.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9841D8
RGBrgb(152, 65, 216)
HSLhsl(275, 66%, 55%)
HSVhsv(275, 70%, 85%)
CMYKcmyk(29.6%, 69.9%, 0%, 15.3%)
CIE-LABlab(46.20, 61.53, -62.45)
CIE-LCHlch(46.20, 87.67, 314.58°)
OKLaboklab(56.34% 0.1332 -0.1772)
OKLCHoklch(56.34% 0.222 306.9)
XYZxyz(27.2312, 15.4142, 66.4931)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841D8 #81D841
analogous
#4D41D8 #9841D8 #D841CC
triadic
#9841D8 #D89841 #41D898
tetradic
#9841D8 #D84D41 #81D841 #41CCD8
square
#9841D8 #D84D41 #81D841 #41CCD8
split-complementary
#9841D8 #CCD841 #41D84D
monochromatic
#571B84 #7925B6 #9841D8 #B474E2 #CFA7ED

Accessibility & contrast

On white

5.14
#9841D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9841D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841D8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841D8#FFFFFF#000000##FFFFFF
##9841D81.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#0E6ED5
Tritanopia (blue-blind)
#8D6388
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9841d8;
/* rgb */ color: rgb(152, 65, 216);
/* oklch */ color: oklch(56.3% 0.222 306.9);
Tailwind
colors: {
  custom: {
    50: '#bb7de5',
    500: '#9841d8',
    950: '#000000',
  },
}
SCSS
$custom: #9841d8;
$custom-light: #bb7de5;
$custom-dark: #000000;
JSON
{
  "hex": "#9841d8",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 216
  },
  "hsl": {
    "h": 274.57,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56344,
    "c": 0.2217,
    "h": 306.9
  },
  "luminance": 0.15414
}

Semantic roles & 50–950 ramp

primary
#9841D8
secondary
#B6DA9B
accent
#E93F87
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9841D8

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

Preview Lab → · Contrast checker → · Palette generator →

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