#9841BA#9841BA

#9841BA is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.3% C 0.192 H 315.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#9841BA
RGBrgb(152, 65, 186)
HSLhsl(283, 48%, 49%)
HSVhsv(283, 65%, 73%)
CMYKcmyk(18.3%, 65.1%, 0%, 27.1%)
CIE-LABlab(44.24, 55.07, -48.25)
CIE-LCHlch(44.24, 73.22, 318.78°)
OKLaboklab(54.32% 0.1359 -0.1355)
OKLCHoklch(54.32% 0.192 315.1)
XYZxyz(23.7007, 14.0020, 47.8990)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841BA #63BA41
analogous
#5B41BA #9841BA #BA41A0
triadic
#9841BA #BA9841 #41BA98
tetradic
#9841BA #BA5B41 #63BA41 #41A0BA
square
#9841BA #BA5B41 #63BA41 #41A0BA
split-complementary
#9841BA #A0BA41 #41BA5B
monochromatic
#4E215F #73318D #9841BA #B16CCC #C99ADC

Accessibility & contrast

On white

5.53
#9841BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9841BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841BA
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841BA#FFFFFF#000000##FFFFFF
##9841BA1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0964BE
Deuteranopia (green-blind)
#3E6BB7
Tritanopia (blue-blind)
#955878
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9841ba;
/* rgb */ color: rgb(152, 65, 186);
/* oklch */ color: oklch(54.3% 0.192 315.1);
Tailwind
colors: {
  custom: {
    50: '#ba7ccf',
    500: '#9841ba',
    950: '#000000',
  },
}
SCSS
$custom: #9841ba;
$custom-light: #ba7ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#9841ba",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 283.14,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54316,
    "c": 0.19197,
    "h": 315.1
  },
  "luminance": 0.14001
}

Semantic roles & 50–950 ramp

primary
#9841BA
secondary
#9FC88F
accent
#D85076
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9841BA

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

Preview Lab → · Contrast checker → · Palette generator →

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