#9841D2#9841D2

#9841D2 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.216 H 308.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9841D2
RGBrgb(152, 65, 210)
HSLhsl(276, 62%, 54%)
HSVhsv(276, 69%, 82%)
CMYKcmyk(27.6%, 69%, 0%, 17.6%)
CIE-LABlab(45.78, 60.21, -59.68)
CIE-LCHlch(45.78, 84.77, 315.25°)
OKLaboklab(55.92% 0.134 -0.169)
OKLCHoklch(55.92% 0.216 308.4)
XYZxyz(26.4697, 15.1096, 62.4823)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841D2 #7BD241
analogous
#5041D2 #9841D2 #D241C4
triadic
#9841D2 #D29841 #41D298
tetradic
#9841D2 #D25041 #7BD241 #41C4D2
square
#9841D2 #D25041 #7BD241 #41C4D2
split-complementary
#9841D2 #C4D241 #41D250
monochromatic
#561D7B #7829AD #9841D2 #B372DE #CEA4E9

Accessibility & contrast

On white

5.22
#9841D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9841D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841D2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841D2#FFFFFF#000000##FFFFFF
##9841D21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#1F6DCF
Tritanopia (blue-blind)
#8F6185
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9841d2;
/* rgb */ color: rgb(152, 65, 210);
/* oklch */ color: oklch(55.9% 0.216 308.4);
Tailwind
colors: {
  custom: {
    50: '#bb7ce1',
    500: '#9841d2',
    950: '#000000',
  },
}
SCSS
$custom: #9841d2;
$custom-light: #bb7ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9841d2",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 276,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5592,
    "c": 0.21574,
    "h": 308.4
  },
  "luminance": 0.15109
}

Semantic roles & 50–950 ramp

primary
#9841D2
secondary
#B1D698
accent
#E54384
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9841D2

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

Preview Lab → · Contrast checker → · Palette generator →

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