#B842C8#B842C8

#B842C8 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.5% C 0.217 H 322.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B842C8
RGBrgb(184, 66, 200)
HSLhsl(293, 55%, 52%)
HSVhsv(293, 67%, 78%)
CMYKcmyk(8%, 67%, 0%, 21.6%)
CIE-LABlab(49.81, 64.68, -47.22)
CIE-LCHlch(49.81, 80.09, 323.87°)
OKLaboklab(59.53% 0.1728 -0.1316)
OKLCHoklch(59.53% 0.217 322.7)
XYZxyz(32.1397, 18.2587, 56.4638)
Luminance0.1826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B842C8 #52C842
analogous
#7542C8 #B842C8 #C84295
triadic
#B842C8 #C8B842 #42C8B8
tetradic
#B842C8 #C87542 #52C842 #4295C8
square
#B842C8 #C87542 #52C842 #4295C8
split-complementary
#B842C8 #95C842 #42C875
monochromatic
#66206F #912E9F #B842C8 #CA71D6 #DCA1E4

Accessibility & contrast

On white

4.51
#B842C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#B842C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B842C8
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B842C8#FFFFFF#000000##000000
##B842C81.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D6ECC
Deuteranopia (green-blind)
#557BC5
Tritanopia (blue-blind)
#BB5880
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b842c8;
/* rgb */ color: rgb(184, 66, 200);
/* oklch */ color: oklch(59.5% 0.217 322.7);
Tailwind
colors: {
  custom: {
    50: '#d180d9',
    500: '#b842c8',
    950: '#000000',
  },
}
SCSS
$custom: #b842c8;
$custom-light: #d180d9;
$custom-dark: #000000;
JSON
{
  "hex": "#b842c8",
  "rgb": {
    "r": 184,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 292.836,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59531,
    "c": 0.2172,
    "h": 322.7
  },
  "luminance": 0.18257
}

Semantic roles & 50–950 ramp

primary
#B842C8
secondary
#9DD096
accent
#DE4A5B
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B15
muted
#837C83

Preview Lab

Preview with #B842C8

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

Preview Lab → · Contrast checker → · Palette generator →

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