#B842CD#B842CD

#B842CD is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.8% C 0.221 H 321.2°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B842CD
RGBrgb(184, 66, 205)
HSLhsl(291, 58%, 53%)
HSVhsv(291, 68%, 80%)
CMYKcmyk(10.2%, 67.8%, 0%, 19.6%)
CIE-LABlab(50.09, 65.59, -49.64)
CIE-LCHlch(50.09, 82.26, 322.88°)
OKLaboklab(59.83% 0.1727 -0.1387)
OKLCHoklch(59.83% 0.221 321.2)
XYZxyz(32.7336, 18.4963, 59.5917)
Luminance0.1850 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B842CD #57CD42
analogous
#7242CD #B842CD #CD429D
triadic
#B842CD #CDB842 #42CDB8
tetradic
#B842CD #CD7242 #57CD42 #429DCD
square
#B842CD #CD7242 #57CD42 #429DCD
split-complementary
#B842CD #9DCD42 #42CD72
monochromatic
#681F76 #932CA6 #B842CD #CA72DA #DCA3E7

Accessibility & contrast

On white

4.47
#B842CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#B842CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B842CD
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B842CD#FFFFFF#000000##000000
##B842CD1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#106FD1
Deuteranopia (green-blind)
#527CCA
Tritanopia (blue-blind)
#BA5A83
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b842cd;
/* rgb */ color: rgb(184, 66, 205);
/* oklch */ color: oklch(59.8% 0.221 321.2);
Tailwind
colors: {
  custom: {
    50: '#d180dd',
    500: '#b842cd',
    950: '#000000',
  },
}
SCSS
$custom: #b842cd;
$custom-light: #d180dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b842cd",
  "rgb": {
    "r": 184,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 290.935,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59826,
    "c": 0.22148,
    "h": 321.2
  },
  "luminance": 0.18495
}

Semantic roles & 50–950 ramp

primary
#B842CD
secondary
#A0D397
accent
#E1465E
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B842CD

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

Preview Lab → · Contrast checker → · Palette generator →

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