#B842BB#B842BB

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

Color values

HEX#B842BB
RGBrgb(184, 66, 187)
HSLhsl(299, 48%, 50%)
HSVhsv(299, 65%, 73%)
CMYKcmyk(1.6%, 64.7%, 0%, 26.7%)
CIE-LABlab(49.10, 62.39, -40.81)
CIE-LCHlch(49.10, 74.55, 326.81°)
OKLaboklab(58.79% 0.1726 -0.113)
OKLCHoklch(58.79% 0.206 326.8)
XYZxyz(30.6845, 17.6766, 48.7998)
Luminance0.1767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B842BB #45BB42
analogous
#7B42BB #B842BB #BB4282
triadic
#B842BB #BBB842 #42BBB8
tetradic
#B842BB #BB7B42 #45BB42 #4282BB
square
#B842BB #BB7B42 #45BB42 #4282BB
split-complementary
#B842BB #82BB42 #42BB7B
monochromatic
#5F2261 #8B328E #B842BB #CA6ECC #DA9CDC

Accessibility & contrast

On white

4.63
#B842BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B842BB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B842BB#FFFFFF#000000##FFFFFF
##B842BB1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b842bb;
/* rgb */ color: rgb(184, 66, 187);
/* oklch */ color: oklch(58.8% 0.206 326.8);
Tailwind
colors: {
  custom: {
    50: '#d17fd0',
    500: '#b842bb',
    950: '#000000',
  },
}
SCSS
$custom: #b842bb;
$custom-light: #d17fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#b842bb",
  "rgb": {
    "r": 184,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 298.512,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58793,
    "c": 0.20626,
    "h": 326.8
  },
  "luminance": 0.17675
}

Semantic roles & 50–950 ramp

primary
#B842BB
secondary
#92C891
accent
#D75054
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B842BB

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

Preview Lab → · Contrast checker → · Palette generator →

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