#B42BB8#B42BB8

#B42BB8 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.0% C 0.228 H 326.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B42BB8
RGBrgb(180, 43, 184)
HSLhsl(298, 62%, 45%)
HSVhsv(298, 77%, 72%)
CMYKcmyk(2.2%, 76.6%, 0%, 27.8%)
CIE-LABlab(45.49, 68.99, -44.84)
CIE-LCHlch(45.49, 82.28, 326.98°)
OKLaboklab(56.02% 0.1906 -0.1246)
OKLCHoklch(56.02% 0.228 326.8)
XYZxyz(28.3375, 14.8938, 46.7204)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BB8 #2FB82B
analogous
#6E2BB8 #B42BB8 #B82B76
triadic
#B42BB8 #B8B42B #2BB8B4
tetradic
#B42BB8 #B86E2B #2FB82B #2B76B8
square
#B42BB8 #B86E2B #2FB82B #2B76B8
split-complementary
#B42BB8 #76B82B #2BB86E
monochromatic
#531455 #831F86 #B42BB8 #D14BD5 #DE7DE1

Accessibility & contrast

On white

5.28
#B42BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B42BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42BB8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BB8#FFFFFF#000000##FFFFFF
##B42BB81.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#4F72B5
Tritanopia (blue-blind)
#B94471
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42bb8;
/* rgb */ color: rgb(180, 43, 184);
/* oklch */ color: oklch(56.0% 0.228 326.8);
Tailwind
colors: {
  custom: {
    50: '#ce74ce',
    500: '#b42bb8',
    950: '#000000',
  },
}
SCSS
$custom: #b42bb8;
$custom-light: #ce74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b42bb8",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 298.298,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56024,
    "c": 0.22773,
    "h": 326.8
  },
  "luminance": 0.14892
}

Semantic roles & 50–950 ramp

primary
#B42BB8
secondary
#78C976
accent
#E54347
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B42BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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