#B42DA5#B42DA5

#B42DA5 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.212 H 333.1°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B42DA5
RGBrgb(180, 45, 165)
HSLhsl(307, 60%, 44%)
HSVhsv(307, 75%, 71%)
CMYKcmyk(0%, 75%, 8.3%, 29.4%)
CIE-LABlab(44.66, 65.40, -34.92)
CIE-LCHlch(44.66, 74.14, 331.90°)
OKLaboklab(55.1% 0.1888 -0.0959)
OKLCHoklch(55.1% 0.212 333.1)
XYZxyz(26.5525, 14.2989, 36.9515)
Luminance0.1430 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DA5 #2DB43C
analogous
#802DB4 #B42DA5 #B42D62
triadic
#B42DA5 #A5B42D #2DA5B4
tetradic
#B42DA5 #B4802D #2DB43C #2D62B4
square
#B42DA5 #B4802D #2DB43C #2D62B4
split-complementary
#B42DA5 #62B42D #2DB480
monochromatic
#52154B #832178 #B42DA5 #D24CC3 #DE7DD4

Accessibility & contrast

On white

5.44
#B42DA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B42DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DA5
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DA5#FFFFFF#000000##FFFFFF
##B42DA51.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275DA8
Deuteranopia (green-blind)
#5B70A2
Tritanopia (blue-blind)
#BC3B67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42da5;
/* rgb */ color: rgb(180, 45, 165);
/* oklch */ color: oklch(55.1% 0.212 333.1);
Tailwind
colors: {
  custom: {
    50: '#ce74c0',
    500: '#b42da5',
    950: '#000000',
  },
}
SCSS
$custom: #b42da5;
$custom-light: #ce74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b42da5",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 306.667,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55097,
    "c": 0.21177,
    "h": 333.1
  },
  "luminance": 0.14297
}

Semantic roles & 50–950 ramp

primary
#B42DA5
secondary
#76C77F
accent
#E35645
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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