#9845BF#9845BF

#9845BF is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.1% C 0.191 H 313.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9845BF
RGBrgb(152, 69, 191)
HSLhsl(281, 49%, 51%)
HSVhsv(281, 64%, 75%)
CMYKcmyk(20.4%, 63.9%, 0%, 25.1%)
CIE-LABlab(45.21, 54.27, -49.61)
CIE-LCHlch(45.21, 73.53, 317.57°)
OKLaboklab(55.12% 0.1311 -0.1395)
OKLCHoklch(55.12% 0.191 313.2)
XYZxyz(24.4794, 14.6939, 50.8268)
Luminance0.1469 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845BF #6CBF45
analogous
#5B45BF #9845BF #BF45A9
triadic
#9845BF #BF9845 #45BF98
tetradic
#9845BF #BF5B45 #6CBF45 #45A9BF
square
#9845BF #BF5B45 #6CBF45 #45A9BF
split-complementary
#9845BF #A9BF45 #45BF5B
monochromatic
#512366 #753394 #9845BF #B173CF #CAA0DE

Accessibility & contrast

On white

5.33
#9845BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9845BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845BF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845BF#FFFFFF#000000##FFFFFF
##9845BF1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C67C3
Deuteranopia (green-blind)
#3E6DBC
Tritanopia (blue-blind)
#945C7C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9845bf;
/* rgb */ color: rgb(152, 69, 191);
/* oklch */ color: oklch(55.1% 0.191 313.2);
Tailwind
colors: {
  custom: {
    50: '#ba7ed3',
    500: '#9845bf',
    950: '#000000',
  },
}
SCSS
$custom: #9845bf;
$custom-light: #ba7ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#9845bf",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 280.82,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.55118,
    "c": 0.19144,
    "h": 313.2
  },
  "luminance": 0.14693
}

Semantic roles & 50–950 ramp

primary
#9845BF
secondary
#A6CB95
accent
#D84F7B
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9845BF

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

Preview Lab → · Contrast checker → · Palette generator →

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