#9841D9#9841D9

#9841D9 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.4% C 0.223 H 306.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9841D9
RGBrgb(152, 65, 217)
HSLhsl(274, 67%, 55%)
HSVhsv(274, 70%, 85%)
CMYKcmyk(30%, 70%, 0%, 14.9%)
CIE-LABlab(46.27, 61.75, -62.91)
CIE-LCHlch(46.27, 88.15, 314.47°)
OKLaboklab(56.42% 0.1331 -0.1785)
OKLCHoklch(56.42% 0.223 306.7)
XYZxyz(27.3609, 15.4660, 67.1760)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841D9 #82D941
analogous
#4C41D9 #9841D9 #D941CE
triadic
#9841D9 #D99841 #41D998
tetradic
#9841D9 #D94C41 #82D941 #41CED9
square
#9841D9 #D94C41 #82D941 #41CED9
split-complementary
#9841D9 #CED941 #41D94C
monochromatic
#571B85 #7925B8 #9841D9 #B474E3 #CFA7ED

Accessibility & contrast

On white

5.13
#9841D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9841D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841D9
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841D9#FFFFFF#000000##FFFFFF
##9841D91.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#096ED6
Tritanopia (blue-blind)
#8D6489
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9841d9;
/* rgb */ color: rgb(152, 65, 217);
/* oklch */ color: oklch(56.4% 0.223 306.7);
Tailwind
colors: {
  custom: {
    50: '#bb7de6',
    500: '#9841d9',
    950: '#000000',
  },
}
SCSS
$custom: #9841d9;
$custom-light: #bb7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9841d9",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 217
  },
  "hsl": {
    "h": 274.342,
    "s": 66.667,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56416,
    "c": 0.22269,
    "h": 306.7
  },
  "luminance": 0.15466
}

Semantic roles & 50–950 ramp

primary
#9841D9
secondary
#B6DB9B
accent
#EA3E87
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9841D9

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

Preview Lab → · Contrast checker → · Palette generator →

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