#9841D7#9841D7

#9841D7 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.221 H 307.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9841D7
RGBrgb(152, 65, 215)
HSLhsl(275, 65%, 55%)
HSVhsv(275, 70%, 84%)
CMYKcmyk(29.3%, 69.8%, 0%, 15.7%)
CIE-LABlab(46.13, 61.31, -61.99)
CIE-LCHlch(46.13, 87.19, 314.69°)
OKLaboklab(56.27% 0.1334 -0.1758)
OKLCHoklch(56.27% 0.221 307.2)
XYZxyz(27.1023, 15.3626, 65.8143)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841D7 #80D741
analogous
#4D41D7 #9841D7 #D741CB
triadic
#9841D7 #D79841 #41D798
tetradic
#9841D7 #D74D41 #80D741 #41CBD7
square
#9841D7 #D74D41 #80D741 #41CBD7
split-complementary
#9841D7 #CBD741 #41D74D
monochromatic
#571B82 #7926B5 #9841D7 #B374E2 #CFA6EC

Accessibility & contrast

On white

5.16
#9841D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9841D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841D7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841D7#FFFFFF#000000##FFFFFF
##9841D71.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#126ED4
Tritanopia (blue-blind)
#8E6388
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9841d7;
/* rgb */ color: rgb(152, 65, 215);
/* oklch */ color: oklch(56.3% 0.221 307.2);
Tailwind
colors: {
  custom: {
    50: '#bb7ce4',
    500: '#9841d7',
    950: '#000000',
  },
}
SCSS
$custom: #9841d7;
$custom-light: #bb7ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#9841d7",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 215
  },
  "hsl": {
    "h": 274.8,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56273,
    "c": 0.2207,
    "h": 307.2
  },
  "luminance": 0.15362
}

Semantic roles & 50–950 ramp

primary
#9841D7
secondary
#B5D99A
accent
#E84086
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9841D7

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

Preview Lab → · Contrast checker → · Palette generator →

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