#B42CB7#B42CB7

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

Color values

HEX#B42CB7
RGBrgb(180, 44, 183)
HSLhsl(299, 61%, 45%)
HSVhsv(299, 76%, 72%)
CMYKcmyk(1.6%, 76%, 0%, 28.2%)
CIE-LABlab(45.53, 68.53, -44.18)
CIE-LCHlch(45.53, 81.54, 327.19°)
OKLaboklab(56.04% 0.1898 -0.1227)
OKLCHoklch(56.04% 0.226 327.1)
XYZxyz(28.2699, 14.9256, 46.1825)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42CB7 #2FB72C
analogous
#6F2CB7 #B42CB7 #B72C75
triadic
#B42CB7 #B7B42C #2CB7B4
tetradic
#B42CB7 #B76F2C #2FB72C #2C75B7
square
#B42CB7 #B76F2C #2FB72C #2C75B7
split-complementary
#B42CB7 #75B72C #2CB76F
monochromatic
#531454 #832086 #B42CB7 #D14CD4 #DE7EE0

Accessibility & contrast

On white

5.27
#B42CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42CB7
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42CB7#FFFFFF#000000##FFFFFF
##B42CB71.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#5172B4
Tritanopia (blue-blind)
#B94470
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42cb7;
/* rgb */ color: rgb(180, 44, 183);
/* oklch */ color: oklch(56.0% 0.226 327.1);
Tailwind
colors: {
  custom: {
    50: '#ce75cd',
    500: '#b42cb7',
    950: '#000000',
  },
}
SCSS
$custom: #b42cb7;
$custom-light: #ce75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b42cb7",
  "rgb": {
    "r": 180,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 298.705,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56037,
    "c": 0.22603,
    "h": 327.1
  },
  "luminance": 0.14924
}

Semantic roles & 50–950 ramp

primary
#B42CB7
secondary
#78C876
accent
#E44347
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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