#9841BF#9841BF

#9841BF is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.6% C 0.197 H 313.6°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9841BF
RGBrgb(152, 65, 191)
HSLhsl(281, 50%, 50%)
HSVhsv(281, 66%, 75%)
CMYKcmyk(20.4%, 66%, 0%, 25.1%)
CIE-LABlab(44.54, 56.12, -50.68)
CIE-LCHlch(44.54, 75.61, 317.92°)
OKLaboklab(54.64% 0.1357 -0.1426)
OKLCHoklch(54.64% 0.197 313.6)
XYZxyz(24.2415, 14.2183, 50.7475)
Luminance0.1422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841BF #68BF41
analogous
#5941BF #9841BF #BF41A7
triadic
#9841BF #BF9841 #41BF98
tetradic
#9841BF #BF5941 #68BF41 #41A7BF
square
#9841BF #BF5941 #68BF41 #41A7BF
split-complementary
#9841BF #A7BF41 #41BF59
monochromatic
#4F2264 #743192 #9841BF #B16FCE #CA9DDE

Accessibility & contrast

On white

5.46
#9841BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9841BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841BF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841BF#FFFFFF#000000##FFFFFF
##9841BF1.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#3A6BBC
Tritanopia (blue-blind)
#945A7B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9841bf;
/* rgb */ color: rgb(152, 65, 191);
/* oklch */ color: oklch(54.6% 0.197 313.6);
Tailwind
colors: {
  custom: {
    50: '#ba7cd3',
    500: '#9841bf',
    950: '#000000',
  },
}
SCSS
$custom: #9841bf;
$custom-light: #ba7cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9841bf",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 281.429,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54637,
    "c": 0.1969,
    "h": 313.6
  },
  "luminance": 0.14218
}

Semantic roles & 50–950 ramp

primary
#9841BF
secondary
#A3CA92
accent
#D94F7A
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9841BF

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

Preview Lab → · Contrast checker → · Palette generator →

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