#B42CB9#B42CB9

#B42CB9 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.2% C 0.228 H 326.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B42CB9
RGBrgb(180, 44, 185)
HSLhsl(298, 62%, 45%)
HSVhsv(298, 76%, 73%)
CMYKcmyk(2.7%, 76.2%, 0%, 27.5%)
CIE-LABlab(45.65, 68.86, -45.17)
CIE-LCHlch(45.65, 82.35, 326.74°)
OKLaboklab(56.16% 0.1898 -0.1256)
OKLCHoklch(56.16% 0.228 326.5)
XYZxyz(28.4795, 15.0094, 47.2866)
Luminance0.1501 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42CB9 #31B92C
analogous
#6D2CB9 #B42CB9 #B92C78
triadic
#B42CB9 #B9B42C #2CB9B4
tetradic
#B42CB9 #B96D2C #31B92C #2C78B9
square
#B42CB9 #B96D2C #31B92C #2C78B9
split-complementary
#B42CB9 #78B92C #2CB96D
monochromatic
#541456 #842088 #B42CB9 #D04DD5 #DD7FE1

Accessibility & contrast

On white

5.25
#B42CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42CB9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42CB9#FFFFFF#000000##FFFFFF
##B42CB91.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b42cb9;
/* rgb */ color: rgb(180, 44, 185);
/* oklch */ color: oklch(56.2% 0.228 326.5);
Tailwind
colors: {
  custom: {
    50: '#ce75ce',
    500: '#b42cb9',
    950: '#000000',
  },
}
SCSS
$custom: #b42cb9;
$custom-light: #ce75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b42cb9",
  "rgb": {
    "r": 180,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 297.872,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56156,
    "c": 0.22755,
    "h": 326.5
  },
  "luminance": 0.15007
}

Semantic roles & 50–950 ramp

primary
#B42CB9
secondary
#7BC978
accent
#E54349
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B42CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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