#B842CE#B842CE

#B842CE is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.9% C 0.222 H 320.9°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B842CE
RGBrgb(184, 66, 206)
HSLhsl(291, 59%, 53%)
HSVhsv(291, 68%, 81%)
CMYKcmyk(10.7%, 68%, 0%, 19.2%)
CIE-LABlab(50.15, 65.77, -50.13)
CIE-LCHlch(50.15, 82.70, 322.69°)
OKLaboklab(59.89% 0.1727 -0.1401)
OKLCHoklch(59.89% 0.222 320.9)
XYZxyz(32.8547, 18.5447, 60.2295)
Luminance0.1854 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B842CE #58CE42
analogous
#7242CE #B842CE #CE429E
triadic
#B842CE #CEB842 #42CEB8
tetradic
#B842CE #CE7242 #58CE42 #429ECE
square
#B842CE #CE7242 #58CE42 #429ECE
split-complementary
#B842CE #9ECE42 #42CE72
monochromatic
#691F77 #942BA7 #B842CE #CA73DB #DDA3E7

Accessibility & contrast

On white

4.46
#B842CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#B842CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B842CE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B842CE#FFFFFF#000000##000000
##B842CE1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D6FD2
Deuteranopia (green-blind)
#517CCB
Tritanopia (blue-blind)
#B95B83
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b842ce;
/* rgb */ color: rgb(184, 66, 206);
/* oklch */ color: oklch(59.9% 0.222 320.9);
Tailwind
colors: {
  custom: {
    50: '#d180dd',
    500: '#b842ce',
    950: '#000000',
  },
}
SCSS
$custom: #b842ce;
$custom-light: #d180dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b842ce",
  "rgb": {
    "r": 184,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 290.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59886,
    "c": 0.22235,
    "h": 320.9
  },
  "luminance": 0.18543
}

Semantic roles & 50–950 ramp

primary
#B842CE
secondary
#A1D498
accent
#E2465E
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B842CE

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

Preview Lab → · Contrast checker → · Palette generator →

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