#B842BC#B842BC

#B842BC is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.207 H 326.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B842BC
RGBrgb(184, 66, 188)
HSLhsl(298, 48%, 50%)
HSVhsv(298, 65%, 74%)
CMYKcmyk(2.1%, 64.9%, 0%, 26.3%)
CIE-LABlab(49.15, 62.56, -41.31)
CIE-LCHlch(49.15, 74.97, 326.56°)
OKLaboklab(58.85% 0.1726 -0.1144)
OKLCHoklch(58.85% 0.207 326.5)
XYZxyz(30.7919, 17.7196, 49.3656)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B842BC #46BC42
analogous
#7B42BC #B842BC #BC4283
triadic
#B842BC #BCB842 #42BCB8
tetradic
#B842BC #BC7B42 #46BC42 #4283BC
square
#B842BC #BC7B42 #46BC42 #4283BC
split-complementary
#B842BC #83BC42 #42BC7B
monochromatic
#5F2261 #8C328F #B842BC #C96FCC #DA9CDC

Accessibility & contrast

On white

4.62
#B842BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#B842BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B842BC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B842BC#FFFFFF#000000##FFFFFF
##B842BC1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6BC0
Deuteranopia (green-blind)
#5D7AB9
Tritanopia (blue-blind)
#BD5379
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b842bc;
/* rgb */ color: rgb(184, 66, 188);
/* oklch */ color: oklch(58.8% 0.207 326.5);
Tailwind
colors: {
  custom: {
    50: '#d17fd0',
    500: '#b842bc',
    950: '#000000',
  },
}
SCSS
$custom: #b842bc;
$custom-light: #d17fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#b842bc",
  "rgb": {
    "r": 184,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 298.033,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58848,
    "c": 0.20708,
    "h": 326.5
  },
  "luminance": 0.17718
}

Semantic roles & 50–950 ramp

primary
#B842BC
secondary
#93C991
accent
#D85055
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B842BC

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

Preview Lab → · Contrast checker → · Palette generator →

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