#9846BD#9846BD

#9846BD is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.1% C 0.188 H 313.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9846BD
RGBrgb(152, 70, 189)
HSLhsl(281, 47%, 51%)
HSVhsv(281, 63%, 74%)
CMYKcmyk(19.6%, 63%, 0%, 25.9%)
CIE-LABlab(45.26, 53.38, -48.36)
CIE-LCHlch(45.26, 72.03, 317.82°)
OKLaboklab(55.12% 0.1299 -0.1359)
OKLCHoklch(55.12% 0.188 313.7)
XYZxyz(24.3228, 14.7306, 49.6963)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846BD #6BBD46
analogous
#5D46BD #9846BD #BD46A6
triadic
#9846BD #BD9846 #46BD98
tetradic
#9846BD #BD5D46 #6BBD46 #46A6BD
square
#9846BD #BD5D46 #6BBD46 #46A6BD
split-complementary
#9846BD #A6BD46 #46BD5D
monochromatic
#512465 #753492 #9846BD #B173CD #CAA0DD

Accessibility & contrast

On white

5.32
#9846BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9846BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846BD
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846BD#FFFFFF#000000##FFFFFF
##9846BD1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1667C1
Deuteranopia (green-blind)
#406DBA
Tritanopia (blue-blind)
#955C7B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9846bd;
/* rgb */ color: rgb(152, 70, 189);
/* oklch */ color: oklch(55.1% 0.188 313.7);
Tailwind
colors: {
  custom: {
    50: '#ba7ed1',
    500: '#9846bd',
    950: '#000000',
  },
}
SCSS
$custom: #9846bd;
$custom-light: #ba7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#9846bd",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 189
  },
  "hsl": {
    "h": 281.345,
    "s": 47.41,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55116,
    "c": 0.18802,
    "h": 313.7
  },
  "luminance": 0.1473
}

Semantic roles & 50–950 ramp

primary
#9846BD
secondary
#A5CA95
accent
#D7517B
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9846BD

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

Preview Lab → · Contrast checker → · Palette generator →

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