#B42CB2#B42CB2

#B42CB2 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.222 H 328.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B42CB2
RGBrgb(180, 44, 178)
HSLhsl(301, 61%, 44%)
HSVhsv(301, 76%, 71%)
CMYKcmyk(0%, 75.6%, 1.1%, 29.4%)
CIE-LABlab(45.25, 67.73, -41.69)
CIE-LCHlch(45.25, 79.53, 328.39°)
OKLaboklab(55.75% 0.19 -0.1154)
OKLCHoklch(55.75% 0.222 328.7)
XYZxyz(27.7587, 14.7211, 43.4903)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42CB2 #2CB42E
analogous
#722CB4 #B42CB2 #B42C6E
triadic
#B42CB2 #B2B42C #2CB2B4
tetradic
#B42CB2 #B4722C #2CB42E #2C6EB4
square
#B42CB2 #B4722C #2CB42E #2C6EB4
split-complementary
#B42CB2 #6EB42C #2CB472
monochromatic
#521451 #832081 #B42CB2 #D34AD1 #DF7CDD

Accessibility & contrast

On white

5.32
#B42CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B42CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42CB2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42CB2#FFFFFF#000000##FFFFFF
##B42CB21.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F60B6
Deuteranopia (green-blind)
#5471AF
Tritanopia (blue-blind)
#BA416E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42cb2;
/* rgb */ color: rgb(180, 44, 178);
/* oklch */ color: oklch(55.7% 0.222 328.7);
Tailwind
colors: {
  custom: {
    50: '#ce75c9',
    500: '#b42cb2',
    950: '#000000',
  },
}
SCSS
$custom: #b42cb2;
$custom-light: #ce75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42cb2",
  "rgb": {
    "r": 180,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 300.882,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55745,
    "c": 0.22228,
    "h": 328.7
  },
  "luminance": 0.14719
}

Semantic roles & 50–950 ramp

primary
#B42CB2
secondary
#75C776
accent
#E44644
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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