#B845D8#B845D8

#B845D8 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.8% C 0.227 H 318.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B845D8
RGBrgb(184, 69, 216)
HSLhsl(287, 65%, 56%)
HSVhsv(287, 68%, 85%)
CMYKcmyk(14.8%, 68.1%, 0%, 15.3%)
CIE-LABlab(51.16, 66.46, -54.23)
CIE-LCHlch(51.16, 85.78, 320.79°)
OKLaboklab(60.8% 0.1691 -0.1521)
OKLCHoklch(60.8% 0.227 318)
XYZxyz(34.2882, 19.4060, 66.8920)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B845D8 #65D845
analogous
#6E45D8 #B845D8 #D845AE
triadic
#B845D8 #D8B845 #45D8B8
tetradic
#B845D8 #D86E45 #65D845 #45AED8
square
#B845D8 #D86E45 #65D845 #45AED8
split-complementary
#B845D8 #AED845 #45D86E
monochromatic
#6F1C86 #9927B9 #B845D8 #CB78E3 #DFAAED

Accessibility & contrast

On white

4.30
#B845D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#B845D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B845D8
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B845D8#FFFFFF#000000##000000
##B845D81.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DC
Deuteranopia (green-blind)
#4B7DD5
Tritanopia (blue-blind)
#B76189
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b845d8;
/* rgb */ color: rgb(184, 69, 216);
/* oklch */ color: oklch(60.8% 0.227 318.0);
Tailwind
colors: {
  custom: {
    50: '#d182e5',
    500: '#b845d8',
    950: '#000000',
  },
}
SCSS
$custom: #b845d8;
$custom-light: #d182e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b845d8",
  "rgb": {
    "r": 184,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 286.939,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60798,
    "c": 0.22745,
    "h": 318
  },
  "luminance": 0.19404
}

Semantic roles & 50–950 ramp

primary
#B845D8
secondary
#ABDB9E
accent
#E84064
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B845D8

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

Preview Lab → · Contrast checker → · Palette generator →

#B845D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva