#B842BD#B842BD

#B842BD is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 58.9% C 0.208 H 326.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B842BD
RGBrgb(184, 66, 189)
HSLhsl(298, 48%, 50%)
HSVhsv(298, 65%, 74%)
CMYKcmyk(2.6%, 65.1%, 0%, 25.9%)
CIE-LABlab(49.21, 62.74, -41.81)
CIE-LCHlch(49.21, 75.39, 326.32°)
OKLaboklab(58.9% 0.1727 -0.1158)
OKLCHoklch(58.9% 0.208 326.1)
XYZxyz(30.9001, 17.7629, 49.9353)
Luminance0.1776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B842BD #47BD42
analogous
#7B42BD #B842BD #BD4284
triadic
#B842BD #BDB842 #42BDB8
tetradic
#B842BD #BD7B42 #47BD42 #4284BD
square
#B842BD #BD7B42 #47BD42 #4284BD
split-complementary
#B842BD #84BD42 #42BD7B
monochromatic
#602262 #8C3290 #B842BD #C96FCD #DA9DDD

Accessibility & contrast

On white

4.61
#B842BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#B842BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B842BD
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B842BD#FFFFFF#000000##FFFFFF
##B842BD1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6BC1
Deuteranopia (green-blind)
#5C7ABA
Tritanopia (blue-blind)
#BD547A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b842bd;
/* rgb */ color: rgb(184, 66, 189);
/* oklch */ color: oklch(58.9% 0.208 326.1);
Tailwind
colors: {
  custom: {
    50: '#d17fd1',
    500: '#b842bd',
    950: '#000000',
  },
}
SCSS
$custom: #b842bd;
$custom-light: #d17fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b842bd",
  "rgb": {
    "r": 184,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 297.561,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.58903,
    "c": 0.20792,
    "h": 326.1
  },
  "luminance": 0.17761
}

Semantic roles & 50–950 ramp

primary
#B842BD
secondary
#94C992
accent
#D85056
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B842BD

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

Preview Lab → · Contrast checker → · Palette generator →

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