#B42BBA#B42BBA

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

Color values

HEX#B42BBA
RGBrgb(180, 43, 186)
HSLhsl(297, 62%, 45%)
HSVhsv(297, 77%, 73%)
CMYKcmyk(3.2%, 76.9%, 0%, 27.1%)
CIE-LABlab(45.60, 69.32, -45.82)
CIE-LCHlch(45.60, 83.09, 326.53°)
OKLaboklab(56.14% 0.1905 -0.1275)
OKLCHoklch(56.14% 0.229 326.2)
XYZxyz(28.5486, 14.9782, 47.8323)
Luminance0.1498 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BBA #31BA2B
analogous
#6D2BBA #B42BBA #BA2B78
triadic
#B42BBA #BAB42B #2BBAB4
tetradic
#B42BBA #BA6D2B #31BA2B #2B78BA
square
#B42BBA #BA6D2B #31BA2B #2B78BA
split-complementary
#B42BBA #78BA2B #2BBA6D
monochromatic
#541457 #842088 #B42BBA #D04CD6 #DD7EE1

Accessibility & contrast

On white

5.26
#B42BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42BBA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BBA#FFFFFF#000000##FFFFFF
##B42BBA1.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#4E72B7
Tritanopia (blue-blind)
#B94572
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42bba;
/* rgb */ color: rgb(180, 43, 186);
/* oklch */ color: oklch(56.1% 0.229 326.2);
Tailwind
colors: {
  custom: {
    50: '#cf74cf',
    500: '#b42bba',
    950: '#000000',
  },
}
SCSS
$custom: #b42bba;
$custom-light: #cf74cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b42bba",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 297.483,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56144,
    "c": 0.22924,
    "h": 326.2
  },
  "luminance": 0.14976
}

Semantic roles & 50–950 ramp

primary
#B42BBA
secondary
#7BCA77
accent
#E64249
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B42BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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