#9841D3#9841D3

#9841D3 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.0% C 0.217 H 308.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9841D3
RGBrgb(152, 65, 211)
HSLhsl(276, 62%, 54%)
HSVhsv(276, 69%, 83%)
CMYKcmyk(28%, 69.2%, 0%, 17.3%)
CIE-LABlab(45.85, 60.43, -60.14)
CIE-LCHlch(45.85, 85.25, 315.14°)
OKLaboklab(55.99% 0.1339 -0.1704)
OKLCHoklch(55.99% 0.217 308.2)
XYZxyz(26.5946, 15.1596, 63.1405)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841D3 #7CD341
analogous
#4F41D3 #9841D3 #D341C5
triadic
#9841D3 #D39841 #41D398
tetradic
#9841D3 #D34F41 #7CD341 #41C5D3
square
#9841D3 #D34F41 #7CD341 #41C5D3
split-complementary
#9841D3 #C5D341 #41D34F
monochromatic
#561D7D #7828AE #9841D3 #B373DF #CEA4EA

Accessibility & contrast

On white

5.21
#9841D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9841D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841D3
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841D3#FFFFFF#000000##FFFFFF
##9841D31.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D7
Deuteranopia (green-blind)
#1D6DD0
Tritanopia (blue-blind)
#8F6185
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9841d3;
/* rgb */ color: rgb(152, 65, 211);
/* oklch */ color: oklch(56.0% 0.217 308.2);
Tailwind
colors: {
  custom: {
    50: '#bb7ce1',
    500: '#9841d3',
    950: '#000000',
  },
}
SCSS
$custom: #9841d3;
$custom-light: #bb7ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9841d3",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 211
  },
  "hsl": {
    "h": 275.753,
    "s": 62.393,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5599,
    "c": 0.21674,
    "h": 308.2
  },
  "luminance": 0.15159
}

Semantic roles & 50–950 ramp

primary
#9841D3
secondary
#B2D799
accent
#E54284
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9841D3

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

Preview Lab → · Contrast checker → · Palette generator →

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