#9845BD#9845BD

#9845BD is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.0% C 0.189 H 313.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#9845BD
RGBrgb(152, 69, 189)
HSLhsl(282, 48%, 51%)
HSVhsv(282, 63%, 74%)
CMYKcmyk(19.6%, 63.5%, 0%, 25.9%)
CIE-LABlab(45.09, 53.85, -48.64)
CIE-LCHlch(45.09, 72.56, 317.91°)
OKLaboklab(54.99% 0.1311 -0.1367)
OKLCHoklch(54.99% 0.189 313.8)
XYZxyz(24.2608, 14.6065, 49.6756)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845BD #6ABD45
analogous
#5C45BD #9845BD #BD45A6
triadic
#9845BD #BD9845 #45BD98
tetradic
#9845BD #BD5C45 #6ABD45 #45A6BD
square
#9845BD #BD5C45 #6ABD45 #45A6BD
split-complementary
#9845BD #A6BD45 #45BD5C
monochromatic
#502464 #743491 #9845BD #B172CD #CA9FDD

Accessibility & contrast

On white

5.36
#9845BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9845BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845BD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845BD#FFFFFF#000000##FFFFFF
##9845BD1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9845bd;
/* rgb */ color: rgb(152, 69, 189);
/* oklch */ color: oklch(55.0% 0.189 313.8);
Tailwind
colors: {
  custom: {
    50: '#ba7ed1',
    500: '#9845bd',
    950: '#000000',
  },
}
SCSS
$custom: #9845bd;
$custom-light: #ba7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#9845bd",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 281.5,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54991,
    "c": 0.18943,
    "h": 313.8
  },
  "luminance": 0.14606
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9845BD

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

Preview Lab → · Contrast checker → · Palette generator →

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