#9841DF#9841DF

#9841DF is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.9% C 0.229 H 305.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9841DF
RGBrgb(152, 65, 223)
HSLhsl(273, 71%, 56%)
HSVhsv(273, 71%, 87%)
CMYKcmyk(31.8%, 70.9%, 0%, 12.5%)
CIE-LABlab(46.69, 63.09, -65.64)
CIE-LCHlch(46.69, 91.05, 313.87°)
OKLaboklab(56.85% 0.1322 -0.1866)
OKLCHoklch(56.85% 0.229 305.3)
XYZxyz(28.1555, 15.7839, 71.3610)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841DF #88DF41
analogous
#4941DF #9841DF #DF41D7
triadic
#9841DF #DF9841 #41DF98
tetradic
#9841DF #DF4941 #88DF41 #41D7DF
square
#9841DF #DF4941 #88DF41 #41D7DF
split-complementary
#9841DF #D7DF41 #41DF49
monochromatic
#59188E #7A21C2 #9841DF #B475E8 #D1AAF1

Accessibility & contrast

On white

5.05
#9841DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9841DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841DF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841DF#FFFFFF#000000##FFFFFF
##9841DF1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE4
Deuteranopia (green-blind)
#006FDC
Tritanopia (blue-blind)
#8B668C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9841df;
/* rgb */ color: rgb(152, 65, 223);
/* oklch */ color: oklch(56.9% 0.229 305.3);
Tailwind
colors: {
  custom: {
    50: '#bc7dea',
    500: '#9841df',
    950: '#000000',
  },
}
SCSS
$custom: #9841df;
$custom-light: #bc7dea;
$custom-dark: #000000;
JSON
{
  "hex": "#9841df",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 223
  },
  "hsl": {
    "h": 273.038,
    "s": 71.171,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5685,
    "c": 0.22866,
    "h": 305.3
  },
  "luminance": 0.15784
}

Semantic roles & 50–950 ramp

primary
#9841DF
secondary
#BBDE9D
accent
#EE3A8B
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9841DF

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

Preview Lab → · Contrast checker → · Palette generator →

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