#9841B1#9841B1

#9841B1 is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.8% C 0.183 H 318.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9841B1
RGBrgb(152, 65, 177)
HSLhsl(287, 46%, 47%)
HSVhsv(287, 63%, 69%)
CMYKcmyk(14.1%, 63.3%, 0%, 30.6%)
CIE-LABlab(43.70, 53.23, -43.82)
CIE-LCHlch(43.70, 68.95, 320.53°)
OKLaboklab(53.76% 0.1361 -0.1226)
OKLCHoklch(53.76% 0.183 318)
XYZxyz(22.7739, 13.6313, 43.0179)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841B1 #5AB141
analogous
#6041B1 #9841B1 #B14192
triadic
#9841B1 #B19841 #41B198
tetradic
#9841B1 #B16041 #5AB141 #4192B1
square
#9841B1 #B16041 #5AB141 #4192B1
split-complementary
#9841B1 #92B141 #41B160
monochromatic
#4B2057 #723184 #9841B1 #B268C7 #C995D8

Accessibility & contrast

On white

5.64
#9841B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9841B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841B1
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841B1#FFFFFF#000000##FFFFFF
##9841B11.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B4
Deuteranopia (green-blind)
#466AAE
Tritanopia (blue-blind)
#975473
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9841b1;
/* rgb */ color: rgb(152, 65, 177);
/* oklch */ color: oklch(53.8% 0.183 318.0);
Tailwind
colors: {
  custom: {
    50: '#b97bc9',
    500: '#9841b1',
    950: '#000000',
  },
}
SCSS
$custom: #9841b1;
$custom-light: #b97bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9841b1",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 177
  },
  "hsl": {
    "h": 286.607,
    "s": 46.281,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53756,
    "c": 0.18317,
    "h": 318
  },
  "luminance": 0.1363
}

Semantic roles & 50–950 ramp

primary
#9841B1
secondary
#97C38A
accent
#D6526F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9841B1

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

Preview Lab → · Contrast checker → · Palette generator →

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