#B842DF#B842DF

#B842DF is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.9% C 0.237 H 316.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B842DF
RGBrgb(184, 66, 223)
HSLhsl(285, 71%, 57%)
HSVhsv(285, 70%, 87%)
CMYKcmyk(17.5%, 70.4%, 0%, 12.5%)
CIE-LABlab(51.17, 68.97, -58.19)
CIE-LCHlch(51.17, 90.24, 319.84°)
OKLaboklab(60.94% 0.1716 -0.1637)
OKLCHoklch(60.94% 0.237 316.4)
XYZxyz(35.0326, 19.4159, 71.7000)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B842DF #69DF42
analogous
#6A42DF #B842DF #DF42B7
triadic
#B842DF #DFB842 #42DFB8
tetradic
#B842DF #DF6A42 #69DF42 #42B7DF
square
#B842DF #DF6A42 #69DF42 #42B7DF
split-complementary
#B842DF #B7DF42 #42DF6A
monochromatic
#71188E #9B21C3 #B842DF #CC76E8 #DFABF1

Accessibility & contrast

On white

4.30
#B842DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#B842DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B842DF
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B842DF#FFFFFF#000000##000000
##B842DF1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#427DDB
Tritanopia (blue-blind)
#B6628C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b842df;
/* rgb */ color: rgb(184, 66, 223);
/* oklch */ color: oklch(60.9% 0.237 316.4);
Tailwind
colors: {
  custom: {
    50: '#d280ea',
    500: '#b842df',
    950: '#000000',
  },
}
SCSS
$custom: #b842df;
$custom-light: #d280ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b842df",
  "rgb": {
    "r": 184,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 285.096,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60942,
    "c": 0.23717,
    "h": 316.4
  },
  "luminance": 0.19414
}

Semantic roles & 50–950 ramp

primary
#B842DF
secondary
#AEDF9E
accent
#EE3A67
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B842DF

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

Preview Lab → · Contrast checker → · Palette generator →

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