#B842DB#B842DB

#B842DB is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.7% C 0.234 H 317.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B842DB
RGBrgb(184, 66, 219)
HSLhsl(286, 68%, 56%)
HSVhsv(286, 70%, 86%)
CMYKcmyk(16%, 69.9%, 0%, 14.1%)
CIE-LABlab(50.92, 68.20, -56.31)
CIE-LCHlch(50.92, 88.45, 320.45°)
OKLaboklab(60.69% 0.172 -0.1582)
OKLCHoklch(60.69% 0.234 317.4)
XYZxyz(34.4997, 19.2027, 68.8933)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B842DB #65DB42
analogous
#6C42DB #B842DB #DB42B1
triadic
#B842DB #DBB842 #42DBB8
tetradic
#B842DB #DB6C42 #65DB42 #42B1DB
square
#B842DB #DB6C42 #65DB42 #42B1DB
split-complementary
#B842DB #B1DB42 #42DB6C
monochromatic
#6F1A89 #9924BC #B842DB #CB75E5 #DFA9EF

Accessibility & contrast

On white

4.34
#B842DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#B842DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B842DB
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B842DB#FFFFFF#000000##000000
##B842DB1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#467DD7
Tritanopia (blue-blind)
#B7608A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b842db;
/* rgb */ color: rgb(184, 66, 219);
/* oklch */ color: oklch(60.7% 0.234 317.4);
Tailwind
colors: {
  custom: {
    50: '#d180e7',
    500: '#b842db',
    950: '#000000',
  },
}
SCSS
$custom: #b842db;
$custom-light: #d180e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b842db",
  "rgb": {
    "r": 184,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 286.275,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60688,
    "c": 0.23365,
    "h": 317.4
  },
  "luminance": 0.19201
}

Semantic roles & 50–950 ramp

primary
#B842DB
secondary
#ABDC9D
accent
#EB3D65
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B842DB

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

Preview Lab → · Contrast checker → · Palette generator →

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