#9841DC#9841DC

#9841DC is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.226 H 306.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9841DC
RGBrgb(152, 65, 220)
HSLhsl(274, 69%, 56%)
HSVhsv(274, 70%, 86%)
CMYKcmyk(30.9%, 70.5%, 0%, 13.7%)
CIE-LABlab(46.48, 62.42, -64.28)
CIE-LCHlch(46.48, 89.60, 314.16°)
OKLaboklab(56.63% 0.1327 -0.1826)
OKLCHoklch(56.63% 0.226 306)
XYZxyz(27.7546, 15.6235, 69.2498)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841DC #85DC41
analogous
#4A41DC #9841DC #DC41D3
triadic
#9841DC #DC9841 #41DC98
tetradic
#9841DC #DC4A41 #85DC41 #41D3DC
square
#9841DC #DC4A41 #85DC41 #41D3DC
split-complementary
#9841DC #D3DC41 #41DC4A
monochromatic
#581989 #7923BD #9841DC #B475E6 #D0A8EF

Accessibility & contrast

On white

5.09
#9841DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#9841DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841DC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841DC#FFFFFF#000000##FFFFFF
##9841DC1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE0
Deuteranopia (green-blind)
#006ED9
Tritanopia (blue-blind)
#8C658A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9841dc;
/* rgb */ color: rgb(152, 65, 220);
/* oklch */ color: oklch(56.6% 0.226 306.0);
Tailwind
colors: {
  custom: {
    50: '#bc7de8',
    500: '#9841dc',
    950: '#000000',
  },
}
SCSS
$custom: #9841dc;
$custom-light: #bc7de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9841dc",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 273.677,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56632,
    "c": 0.22568,
    "h": 306
  },
  "luminance": 0.15623
}

Semantic roles & 50–950 ramp

primary
#9841DC
secondary
#B8DD9C
accent
#EC3C89
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9841DC

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

Preview Lab → · Contrast checker → · Palette generator →

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