#9841D5#9841D5

#9841D5 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.1% C 0.219 H 307.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9841D5
RGBrgb(152, 65, 213)
HSLhsl(275, 64%, 55%)
HSVhsv(275, 69%, 84%)
CMYKcmyk(28.6%, 69.5%, 0%, 16.5%)
CIE-LABlab(45.99, 60.87, -61.06)
CIE-LCHlch(45.99, 86.22, 314.91°)
OKLaboklab(56.13% 0.1337 -0.1731)
OKLCHoklch(56.13% 0.219 307.7)
XYZxyz(26.8469, 15.2605, 64.4691)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841D5 #7ED541
analogous
#4E41D5 #9841D5 #D541C8
triadic
#9841D5 #D59841 #41D598
tetradic
#9841D5 #D54E41 #7ED541 #41C8D5
square
#9841D5 #D54E41 #7ED541 #41C8D5
split-complementary
#9841D5 #C8D541 #41D54E
monochromatic
#571C7F #7927B2 #9841D5 #B373E0 #CEA5EB

Accessibility & contrast

On white

5.18
#9841D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9841D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841D5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841D5#FFFFFF#000000##FFFFFF
##9841D51.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#186ED2
Tritanopia (blue-blind)
#8E6286
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9841d5;
/* rgb */ color: rgb(152, 65, 213);
/* oklch */ color: oklch(56.1% 0.219 307.7);
Tailwind
colors: {
  custom: {
    50: '#bb7ce3',
    500: '#9841d5',
    950: '#000000',
  },
}
SCSS
$custom: #9841d5;
$custom-light: #bb7ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9841d5",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 213
  },
  "hsl": {
    "h": 275.27,
    "s": 63.793,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56131,
    "c": 0.21872,
    "h": 307.7
  },
  "luminance": 0.1526
}

Semantic roles & 50–950 ramp

primary
#9841D5
secondary
#B3D89A
accent
#E74185
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9841D5

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

Preview Lab → · Contrast checker → · Palette generator →

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