#B842EA#B842EA

#B842EA is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.7% C 0.247 H 313.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B842EA
RGBrgb(184, 66, 234)
HSLhsl(282, 80%, 59%)
HSVhsv(282, 72%, 92%)
CMYKcmyk(21.4%, 71.8%, 0%, 8.2%)
CIE-LABlab(51.87, 71.10, -63.28)
CIE-LCHlch(51.87, 95.18, 318.33°)
OKLaboklab(61.66% 0.1705 -0.1786)
OKLCHoklch(61.66% 0.247 313.7)
XYZxyz(36.5641, 20.0285, 79.7657)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B842EA #74EA42
analogous
#6442EA #B842EA #EA42C8
triadic
#B842EA #EAB842 #42EAB8
tetradic
#B842EA #EA6442 #74EA42 #42C8EA
square
#B842EA #EA6442 #74EA42 #42C8EA
split-complementary
#B842EA #C8EA42 #42EA64
monochromatic
#7612A0 #9E18D7 #B842EA #CD79F0 #E1B0F6

Accessibility & contrast

On white

4.20
#B842EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#B842EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B842EA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B842EA#FFFFFF#000000##000000
##B842EA1.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#357EE6
Tritanopia (blue-blind)
#B36793
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b842ea;
/* rgb */ color: rgb(184, 66, 234);
/* oklch */ color: oklch(61.7% 0.247 313.7);
Tailwind
colors: {
  custom: {
    50: '#d281f2',
    500: '#b842ea',
    950: '#000000',
  },
}
SCSS
$custom: #b842ea;
$custom-light: #d281f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b842ea",
  "rgb": {
    "r": 184,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 282.143,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61662,
    "c": 0.2469,
    "h": 313.7
  },
  "luminance": 0.20027
}

Semantic roles & 50–950 ramp

primary
#B842EA
secondary
#B7E5A3
accent
#F6316C
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #B842EA

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

Preview Lab → · Contrast checker → · Palette generator →

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