#9846B2#9846B2

#9846B2 is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.4% C 0.177 H 317.3°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9846B2
RGBrgb(152, 70, 178)
HSLhsl(286, 44%, 49%)
HSVhsv(286, 61%, 70%)
CMYKcmyk(14.6%, 60.7%, 0%, 30.2%)
CIE-LABlab(44.62, 51.07, -42.95)
CIE-LCHlch(44.62, 66.73, 319.94°)
OKLaboklab(54.44% 0.1299 -0.1201)
OKLCHoklch(54.44% 0.177 317.3)
XYZxyz(23.1738, 14.2710, 43.6447)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846B2 #60B246
analogous
#6246B2 #9846B2 #B24696
triadic
#9846B2 #B29846 #46B298
tetradic
#9846B2 #B26246 #60B246 #4696B2
square
#9846B2 #B26246 #60B246 #4696B2
split-complementary
#9846B2 #96B246 #46B262
monochromatic
#4D235A #723586 #9846B2 #B16FC6 #C99BD8

Accessibility & contrast

On white

5.45
#9846B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9846B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846B2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846B2#FFFFFF#000000##FFFFFF
##9846B21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#496CAF
Tritanopia (blue-blind)
#975875
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9846b2;
/* rgb */ color: rgb(152, 70, 178);
/* oklch */ color: oklch(54.4% 0.177 317.3);
Tailwind
colors: {
  custom: {
    50: '#b97ec9',
    500: '#9846b2',
    950: '#000000',
  },
}
SCSS
$custom: #9846b2;
$custom-light: #b97ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#9846b2",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 285.556,
    "s": 43.548,
    "l": 48.627
  },
  "oklch": {
    "l": 0.54441,
    "c": 0.17689,
    "h": 317.3
  },
  "luminance": 0.1427
}

Semantic roles & 50–950 ramp

primary
#9846B2
secondary
#9CC490
accent
#D35573
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9846B2

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

Preview Lab → · Contrast checker → · Palette generator →

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