#9845BB#9845BB

#9845BB is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.9% C 0.187 H 314.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9845BB
RGBrgb(152, 69, 187)
HSLhsl(282, 46%, 50%)
HSVhsv(282, 63%, 73%)
CMYKcmyk(18.7%, 63.1%, 0%, 26.7%)
CIE-LABlab(44.97, 53.43, -47.66)
CIE-LCHlch(44.97, 71.60, 318.26°)
OKLaboklab(54.86% 0.1312 -0.1338)
OKLCHoklch(54.86% 0.187 314.4)
XYZxyz(24.0452, 14.5203, 48.5401)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845BB #68BB45
analogous
#5D45BB #9845BB #BB45A3
triadic
#9845BB #BB9845 #45BB98
tetradic
#9845BB #BB5D45 #68BB45 #45A3BB
square
#9845BB #BB5D45 #68BB45 #45A3BB
split-complementary
#9845BB #A3BB45 #45BB5D
monochromatic
#4F2462 #74348F #9845BB #B172CB #CA9FDC

Accessibility & contrast

On white

5.38
#9845BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9845BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845BB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845BB#FFFFFF#000000##FFFFFF
##9845BB1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1766BF
Deuteranopia (green-blind)
#416DB8
Tritanopia (blue-blind)
#955B7A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9845bb;
/* rgb */ color: rgb(152, 69, 187);
/* oklch */ color: oklch(54.9% 0.187 314.4);
Tailwind
colors: {
  custom: {
    50: '#ba7ed0',
    500: '#9845bb',
    950: '#000000',
  },
}
SCSS
$custom: #9845bb;
$custom-light: #ba7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#9845bb",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 282.203,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54865,
    "c": 0.18741,
    "h": 314.4
  },
  "luminance": 0.1452
}

Semantic roles & 50–950 ramp

primary
#9845BB
secondary
#A3C894
accent
#D65279
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9845BB

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

Preview Lab → · Contrast checker → · Palette generator →

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