#B42CB8#B42CB8

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

Color values

HEX#B42CB8
RGBrgb(180, 44, 184)
HSLhsl(298, 61%, 45%)
HSVhsv(298, 76%, 72%)
CMYKcmyk(2.2%, 76.1%, 0%, 27.8%)
CIE-LABlab(45.59, 68.70, -44.67)
CIE-LCHlch(45.59, 81.95, 326.96°)
OKLaboklab(56.1% 0.1898 -0.1241)
OKLCHoklch(56.1% 0.227 326.8)
XYZxyz(28.3743, 14.9674, 46.7326)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42CB8 #30B82C
analogous
#6E2CB8 #B42CB8 #B82C76
triadic
#B42CB8 #B8B42C #2CB8B4
tetradic
#B42CB8 #B86E2C #30B82C #2C76B8
square
#B42CB8 #B86E2C #30B82C #2C76B8
split-complementary
#B42CB8 #76B82C #2CB86E
monochromatic
#531455 #842087 #B42CB8 #D14DD4 #DD7EE0

Accessibility & contrast

On white

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

On black

3.99
#B42CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B42CB8#FFFFFF#000000##FFFFFF
##B42CB81.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b42cb8;
/* rgb */ color: rgb(180, 44, 184);
/* oklch */ color: oklch(56.1% 0.227 326.8);
Tailwind
colors: {
  custom: {
    50: '#ce75ce',
    500: '#b42cb8',
    950: '#000000',
  },
}
SCSS
$custom: #b42cb8;
$custom-light: #ce75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b42cb8",
  "rgb": {
    "r": 180,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 298.286,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56096,
    "c": 0.22679,
    "h": 326.8
  },
  "luminance": 0.14965
}

Semantic roles & 50–950 ramp

primary
#B42CB8
secondary
#79C977
accent
#E54348
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B42CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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