#B42ED3#B42ED3

#B42ED3 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.9% C 0.246 H 319.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#B42ED3
RGBrgb(180, 46, 211)
HSLhsl(289, 65%, 50%)
HSVhsv(289, 78%, 83%)
CMYKcmyk(14.7%, 78.2%, 0%, 17.3%)
CIE-LABlab(47.45, 72.74, -57.37)
CIE-LCHlch(47.45, 92.64, 321.74°)
OKLaboklab(57.94% 0.1858 -0.1613)
OKLCHoklch(57.94% 0.246 319)
XYZxyz(31.5557, 16.3620, 63.1114)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42ED3 #4DD32E
analogous
#612ED3 #B42ED3 #D32EA0
triadic
#B42ED3 #D3B42E #2ED3B4
tetradic
#B42ED3 #D3612E #4DD32E #2EA0D3
square
#B42ED3 #D3612E #4DD32E #2EA0D3
split-complementary
#B42ED3 #A0D32E #2ED361
monochromatic
#5F176F #8A22A2 #B42ED3 #C661DE #D893E8

Accessibility & contrast

On white

4.92
#B42ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B42ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42ED3
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42ED3#FFFFFF#000000##FFFFFF
##B42ED31.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#3A75CF
Tritanopia (blue-blind)
#B45381
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b42ed3;
/* rgb */ color: rgb(180, 46, 211);
/* oklch */ color: oklch(57.9% 0.246 319.0);
Tailwind
colors: {
  custom: {
    50: '#cf77e1',
    500: '#b42ed3',
    950: '#000000',
  },
}
SCSS
$custom: #b42ed3;
$custom-light: #cf77e1;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ed3",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 288.727,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5794,
    "c": 0.24603,
    "h": 319
  },
  "luminance": 0.1636
}

Semantic roles & 50–950 ramp

primary
#B42ED3
secondary
#97D38A
accent
#E8405F
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B42ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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