#B845D2#B845D2

#B845D2 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.4% C 0.222 H 319.7°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B845D2
RGBrgb(184, 69, 210)
HSLhsl(289, 61%, 55%)
HSVhsv(289, 67%, 82%)
CMYKcmyk(12.4%, 67.1%, 0%, 17.6%)
CIE-LABlab(50.81, 65.33, -51.37)
CIE-LCHlch(50.81, 83.11, 321.82°)
OKLaboklab(60.43% 0.1694 -0.1437)
OKLCHoklch(60.43% 0.222 319.7)
XYZxyz(33.5267, 19.1013, 62.8812)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B845D2 #5FD245
analogous
#7145D2 #B845D2 #D245A6
triadic
#B845D2 #D2B845 #45D2B8
tetradic
#B845D2 #D27145 #5FD245 #45A6D2
square
#B845D2 #D27145 #5FD245 #45A6D2
split-complementary
#B845D2 #A6D245 #45D271
monochromatic
#6C1F7E #972AAF #B845D2 #CB76DE #DEA8EA

Accessibility & contrast

On white

4.36
#B845D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#B845D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B845D2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B845D2#FFFFFF#000000##000000
##B845D21.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C71D6
Deuteranopia (green-blind)
#507DCF
Tritanopia (blue-blind)
#B85E86
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b845d2;
/* rgb */ color: rgb(184, 69, 210);
/* oklch */ color: oklch(60.4% 0.222 319.7);
Tailwind
colors: {
  custom: {
    50: '#d181e0',
    500: '#b845d2',
    950: '#000000',
  },
}
SCSS
$custom: #b845d2;
$custom-light: #d181e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b845d2",
  "rgb": {
    "r": 184,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 288.936,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.60431,
    "c": 0.22214,
    "h": 319.7
  },
  "luminance": 0.191
}

Semantic roles & 50–950 ramp

primary
#B845D2
secondary
#A7D79C
accent
#E44461
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B845D2

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

Preview Lab → · Contrast checker → · Palette generator →

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