#B845D7#B845D7

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

Color values

HEX#B845D7
RGBrgb(184, 69, 215)
HSLhsl(287, 65%, 56%)
HSVhsv(287, 68%, 84%)
CMYKcmyk(14.4%, 67.9%, 0%, 15.7%)
CIE-LABlab(51.10, 66.27, -53.76)
CIE-LCHlch(51.10, 85.33, 320.95°)
OKLaboklab(60.74% 0.1692 -0.1507)
OKLCHoklch(60.74% 0.227 318.3)
XYZxyz(34.1593, 19.3544, 66.2132)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B845D7 #64D745
analogous
#6F45D7 #B845D7 #D745AD
triadic
#B845D7 #D7B845 #45D7B8
tetradic
#B845D7 #D76F45 #64D745 #45ADD7
square
#B845D7 #D76F45 #64D745 #45ADD7
split-complementary
#B845D7 #ADD745 #45D76F
monochromatic
#6F1D85 #9927B7 #B845D7 #CB77E2 #DEAAED

Accessibility & contrast

On white

4.31
#B845D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#B845D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B845D7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B845D7#FFFFFF#000000##000000
##B845D71.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DB
Deuteranopia (green-blind)
#4C7DD4
Tritanopia (blue-blind)
#B76089
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b845d7;
/* rgb */ color: rgb(184, 69, 215);
/* oklch */ color: oklch(60.7% 0.227 318.3);
Tailwind
colors: {
  custom: {
    50: '#d182e4',
    500: '#b845d7',
    950: '#000000',
  },
}
SCSS
$custom: #b845d7;
$custom-light: #d182e4;
$custom-dark: #000000;
JSON
{
  "hex": "#b845d7",
  "rgb": {
    "r": 184,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 287.26,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60736,
    "c": 0.22656,
    "h": 318.3
  },
  "luminance": 0.19353
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B845D7

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

Preview Lab → · Contrast checker → · Palette generator →

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