#9847B2#9847B2

#9847B2 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.6% C 0.175 H 317.2°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9847B2
RGBrgb(152, 71, 178)
HSLhsl(285, 43%, 49%)
HSVhsv(285, 60%, 70%)
CMYKcmyk(14.6%, 60.1%, 0%, 30.2%)
CIE-LABlab(44.80, 50.59, -42.67)
CIE-LCHlch(44.80, 66.18, 319.86°)
OKLaboklab(54.57% 0.1286 -0.1192)
OKLCHoklch(54.57% 0.175 317.2)
XYZxyz(23.2369, 14.3971, 43.6657)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847B2 #61B247
analogous
#6347B2 #9847B2 #B24797
triadic
#9847B2 #B29847 #47B298
tetradic
#9847B2 #B26347 #61B247 #4797B2
square
#9847B2 #B26347 #61B247 #4797B2
split-complementary
#9847B2 #97B247 #47B263
monochromatic
#4D245B #733686 #9847B2 #B170C6 #C99CD7

Accessibility & contrast

On white

5.41
#9847B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9847B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847B2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847B2#FFFFFF#000000##FFFFFF
##9847B21.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B5
Deuteranopia (green-blind)
#4A6CAF
Tritanopia (blue-blind)
#975976
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9847b2;
/* rgb */ color: rgb(152, 71, 178);
/* oklch */ color: oklch(54.6% 0.175 317.2);
Tailwind
colors: {
  custom: {
    50: '#b97fc9',
    500: '#9847b2',
    950: '#000000',
  },
}
SCSS
$custom: #9847b2;
$custom-light: #b97fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9847b2",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 285.421,
    "s": 42.972,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54571,
    "c": 0.1754,
    "h": 317.2
  },
  "luminance": 0.14396
}

Semantic roles & 50–950 ramp

primary
#9847B2
secondary
#9DC491
accent
#D35574
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9847B2

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

Preview Lab → · Contrast checker → · Palette generator →

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