#9845AD#9845AD

#9845AD is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.0% C 0.173 H 319.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9845AD
RGBrgb(152, 69, 173)
HSLhsl(288, 43%, 47%)
HSVhsv(288, 60%, 68%)
CMYKcmyk(12.1%, 60.1%, 0%, 32.2%)
CIE-LABlab(44.16, 50.53, -40.73)
CIE-LCHlch(44.16, 64.91, 321.13°)
OKLaboklab(54.02% 0.131 -0.1136)
OKLCHoklch(54.02% 0.173 319.1)
XYZxyz(22.6189, 13.9497, 41.0282)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845AD #5AAD45
analogous
#6445AD #9845AD #AD458E
triadic
#9845AD #AD9845 #45AD98
tetradic
#9845AD #AD6445 #5AAD45 #458EAD
square
#9845AD #AD6445 #5AAD45 #458EAD
split-complementary
#9845AD #8EAD45 #45AD64
monochromatic
#4B2255 #723481 #9845AD #B26BC4 #C997D5

Accessibility & contrast

On white

5.54
#9845AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9845AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845AD
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845AD#FFFFFF#000000##FFFFFF
##9845AD1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C63B0
Deuteranopia (green-blind)
#4B6BAA
Tritanopia (blue-blind)
#985672
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9845ad;
/* rgb */ color: rgb(152, 69, 173);
/* oklch */ color: oklch(54.0% 0.173 319.1);
Tailwind
colors: {
  custom: {
    50: '#b97dc6',
    500: '#9845ad',
    950: '#000000',
  },
}
SCSS
$custom: #9845ad;
$custom-light: #b97dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#9845ad",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 173
  },
  "hsl": {
    "h": 287.885,
    "s": 42.975,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54017,
    "c": 0.1734,
    "h": 319.1
  },
  "luminance": 0.13949
}

Semantic roles & 50–950 ramp

primary
#9845AD
secondary
#97C18C
accent
#D3556E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9845AD

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

Preview Lab → · Contrast checker → · Palette generator →

#9845AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva