#9845BC#9845BC

#9845BC is a mid, vivid purple. Relative luminance 0.146; OKLCH L 54.9% C 0.188 H 314.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9845BC
RGBrgb(152, 69, 188)
HSLhsl(282, 47%, 50%)
HSVhsv(282, 63%, 74%)
CMYKcmyk(19.1%, 63.3%, 0%, 26.3%)
CIE-LABlab(45.03, 53.64, -48.15)
CIE-LCHlch(45.03, 72.08, 318.09°)
OKLaboklab(54.93% 0.1312 -0.1353)
OKLCHoklch(54.93% 0.188 314.1)
XYZxyz(24.1526, 14.5632, 49.1059)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845BC #69BC45
analogous
#5C45BC #9845BC #BC45A4
triadic
#9845BC #BC9845 #45BC98
tetradic
#9845BC #BC5C45 #69BC45 #45A4BC
square
#9845BC #BC5C45 #69BC45 #45A4BC
split-complementary
#9845BC #A4BC45 #45BC5C
monochromatic
#502463 #743490 #9845BC #B172CC #CA9FDC

Accessibility & contrast

On white

5.37
#9845BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9845BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845BC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845BC#FFFFFF#000000##FFFFFF
##9845BC1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1566C0
Deuteranopia (green-blind)
#406DB9
Tritanopia (blue-blind)
#955B7A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9845bc;
/* rgb */ color: rgb(152, 69, 188);
/* oklch */ color: oklch(54.9% 0.188 314.1);
Tailwind
colors: {
  custom: {
    50: '#ba7ed1',
    500: '#9845bc',
    950: '#000000',
  },
}
SCSS
$custom: #9845bc;
$custom-light: #ba7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#9845bc",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 281.849,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54928,
    "c": 0.18841,
    "h": 314.1
  },
  "luminance": 0.14562
}

Semantic roles & 50–950 ramp

primary
#9845BC
secondary
#A4C994
accent
#D7517A
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9845BC

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

Preview Lab → · Contrast checker → · Palette generator →

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