#B42BB5#B42BB5

#B42BB5 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.225 H 327.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B42BB5
RGBrgb(180, 43, 181)
HSLhsl(300, 62%, 44%)
HSVhsv(300, 76%, 71%)
CMYKcmyk(0.6%, 76.2%, 0%, 29%)
CIE-LABlab(45.32, 68.50, -43.35)
CIE-LCHlch(45.32, 81.06, 327.67°)
OKLaboklab(55.85% 0.1907 -0.1203)
OKLCHoklch(55.85% 0.225 327.8)
XYZxyz(28.0264, 14.7693, 45.0817)
Luminance0.1477 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BB5 #2CB52B
analogous
#6F2BB5 #B42BB5 #B52B71
triadic
#B42BB5 #B5B42B #2BB5B4
tetradic
#B42BB5 #B56F2B #2CB52B #2B71B5
square
#B42BB5 #B56F2B #2CB52B #2B71B5
split-complementary
#B42BB5 #71B52B #2BB56F
monochromatic
#521452 #831F84 #B42BB5 #D349D4 #DF7BE0

Accessibility & contrast

On white

5.31
#B42BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B42BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42BB5
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BB5#FFFFFF#000000##FFFFFF
##B42BB51.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0160B9
Deuteranopia (green-blind)
#5171B2
Tritanopia (blue-blind)
#BA426F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42bb5;
/* rgb */ color: rgb(180, 43, 181);
/* oklch */ color: oklch(55.8% 0.225 327.8);
Tailwind
colors: {
  custom: {
    50: '#ce74cc',
    500: '#b42bb5',
    950: '#000000',
  },
}
SCSS
$custom: #b42bb5;
$custom-light: #ce74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42bb5",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 299.565,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55847,
    "c": 0.22548,
    "h": 327.8
  },
  "luminance": 0.14767
}

Semantic roles & 50–950 ramp

primary
#B42BB5
secondary
#75C874
accent
#E54344
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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