#9841B2#9841B2

#9841B2 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 53.8% C 0.184 H 317.7°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9841B2
RGBrgb(152, 65, 178)
HSLhsl(286, 47%, 48%)
HSVhsv(286, 63%, 70%)
CMYKcmyk(14.6%, 63.5%, 0%, 30.2%)
CIE-LABlab(43.76, 53.43, -44.32)
CIE-LCHlch(43.76, 69.42, 320.32°)
OKLaboklab(53.82% 0.1361 -0.124)
OKLCHoklch(53.82% 0.184 317.7)
XYZxyz(22.8739, 13.6713, 43.5448)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841B2 #5BB241
analogous
#6041B2 #9841B2 #B24193
triadic
#9841B2 #B29841 #41B298
tetradic
#9841B2 #B26041 #5BB241 #4193B2
square
#9841B2 #B26041 #5BB241 #4193B2
split-complementary
#9841B2 #93B241 #41B260
monochromatic
#4B2058 #723185 #9841B2 #B268C8 #C995D8

Accessibility & contrast

On white

5.62
#9841B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9841B2
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841B2#FFFFFF#000000##FFFFFF
##9841B21.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B5
Deuteranopia (green-blind)
#456AAF
Tritanopia (blue-blind)
#975574
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9841b2;
/* rgb */ color: rgb(152, 65, 178);
/* oklch */ color: oklch(53.8% 0.184 317.7);
Tailwind
colors: {
  custom: {
    50: '#b97bc9',
    500: '#9841b2',
    950: '#000000',
  },
}
SCSS
$custom: #9841b2;
$custom-light: #b97bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9841b2",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 286.195,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53817,
    "c": 0.18414,
    "h": 317.7
  },
  "luminance": 0.1367
}

Semantic roles & 50–950 ramp

primary
#9841B2
secondary
#98C48B
accent
#D65270
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9841B2

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

Preview Lab → · Contrast checker → · Palette generator →

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