#9841B8#9841B8

#9841B8 is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.2% C 0.190 H 315.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9841B8
RGBrgb(152, 65, 184)
HSLhsl(284, 48%, 49%)
HSVhsv(284, 65%, 72%)
CMYKcmyk(17.4%, 64.7%, 0%, 27.8%)
CIE-LABlab(44.11, 54.66, -47.28)
CIE-LCHlch(44.11, 72.27, 319.14°)
OKLaboklab(54.19% 0.136 -0.1327)
OKLCHoklch(54.19% 0.19 315.7)
XYZxyz(23.4896, 13.9175, 46.7871)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841B8 #61B841
analogous
#5D41B8 #9841B8 #B8419D
triadic
#9841B8 #B89841 #41B898
tetradic
#9841B8 #B85D41 #61B841 #419DB8
square
#9841B8 #B85D41 #61B841 #419DB8
split-complementary
#9841B8 #9DB841 #41B85D
monochromatic
#4D215E #73318B #9841B8 #B16BCB #C999DB

Accessibility & contrast

On white

5.55
#9841B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9841B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841B8
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841B8#FFFFFF#000000##FFFFFF
##9841B81.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1063BC
Deuteranopia (green-blind)
#406BB5
Tritanopia (blue-blind)
#965777
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9841b8;
/* rgb */ color: rgb(152, 65, 184);
/* oklch */ color: oklch(54.2% 0.190 315.7);
Tailwind
colors: {
  custom: {
    50: '#ba7bce',
    500: '#9841b8',
    950: '#000000',
  },
}
SCSS
$custom: #9841b8;
$custom-light: #ba7bce;
$custom-dark: #000000;
JSON
{
  "hex": "#9841b8",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 283.866,
    "s": 47.791,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54189,
    "c": 0.19001,
    "h": 315.7
  },
  "luminance": 0.13917
}

Semantic roles & 50–950 ramp

primary
#9841B8
secondary
#9DC78E
accent
#D75075
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9841B8

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

Preview Lab → · Contrast checker → · Palette generator →

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