#B42DB7#B42DB7

#B42DB7 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.225 H 327.1°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B42DB7
RGBrgb(180, 45, 183)
HSLhsl(299, 61%, 45%)
HSVhsv(299, 75%, 72%)
CMYKcmyk(1.6%, 75.4%, 0%, 28.2%)
CIE-LABlab(45.64, 68.24, -44.01)
CIE-LCHlch(45.64, 81.20, 327.18°)
OKLaboklab(56.11% 0.189 -0.1222)
OKLCHoklch(56.11% 0.225 327.1)
XYZxyz(28.3076, 15.0010, 46.1951)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DB7 #30B72D
analogous
#6F2DB7 #B42DB7 #B72D75
triadic
#B42DB7 #B7B42D #2DB7B4
tetradic
#B42DB7 #B76F2D #30B72D #2D75B7
square
#B42DB7 #B76F2D #30B72D #2D75B7
split-complementary
#B42DB7 #75B72D #2DB76F
monochromatic
#531555 #842186 #B42DB7 #D14ED3 #DD7FDF

Accessibility & contrast

On white

5.25
#B42DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B42DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DB7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DB7#FFFFFF#000000##FFFFFF
##B42DB71.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#5172B4
Tritanopia (blue-blind)
#B94471
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42db7;
/* rgb */ color: rgb(180, 45, 183);
/* oklch */ color: oklch(56.1% 0.225 327.1);
Tailwind
colors: {
  custom: {
    50: '#ce75cd',
    500: '#b42db7',
    950: '#000000',
  },
}
SCSS
$custom: #b42db7;
$custom-light: #ce75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b42db7",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 298.696,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56111,
    "c": 0.22507,
    "h": 327.1
  },
  "luminance": 0.14999
}

Semantic roles & 50–950 ramp

primary
#B42DB7
secondary
#79C878
accent
#E44448
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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