#B842CF#B842CF

#B842CF is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.9% C 0.223 H 320.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B842CF
RGBrgb(184, 66, 207)
HSLhsl(290, 59%, 54%)
HSVhsv(290, 68%, 81%)
CMYKcmyk(11.1%, 68.1%, 0%, 18.8%)
CIE-LABlab(50.21, 65.96, -50.61)
CIE-LCHlch(50.21, 83.14, 322.50°)
OKLaboklab(59.95% 0.1726 -0.1415)
OKLCHoklch(59.95% 0.223 320.7)
XYZxyz(32.9765, 18.5934, 60.8713)
Luminance0.1859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B842CF #59CF42
analogous
#7142CF #B842CF #CF429F
triadic
#B842CF #CFB842 #42CFB8
tetradic
#B842CF #CF7142 #59CF42 #429FCF
square
#B842CF #CF7142 #59CF42 #429FCF
split-complementary
#B842CF #9FCF42 #42CF71
monochromatic
#691F78 #942BA9 #B842CF #CA73DB #DDA4E8

Accessibility & contrast

On white

4.45
#B842CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#B842CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B842CF
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B842CF#FFFFFF#000000##000000
##B842CF1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#086FD3
Deuteranopia (green-blind)
#507CCC
Tritanopia (blue-blind)
#B95B84
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b842cf;
/* rgb */ color: rgb(184, 66, 207);
/* oklch */ color: oklch(59.9% 0.223 320.7);
Tailwind
colors: {
  custom: {
    50: '#d180de',
    500: '#b842cf',
    950: '#000000',
  },
}
SCSS
$custom: #b842cf;
$custom-light: #d180de;
$custom-dark: #000000;
JSON
{
  "hex": "#b842cf",
  "rgb": {
    "r": 184,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 290.213,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59946,
    "c": 0.22321,
    "h": 320.7
  },
  "luminance": 0.18592
}

Semantic roles & 50–950 ramp

primary
#B842CF
secondary
#A2D598
accent
#E3455F
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B842CF

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

Preview Lab → · Contrast checker → · Palette generator →

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