#B42CA7#B42CA7

#B42CA7 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.214 H 332.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B42CA7
RGBrgb(180, 44, 167)
HSLhsl(306, 61%, 44%)
HSVhsv(306, 76%, 71%)
CMYKcmyk(0%, 75.6%, 7.2%, 29.4%)
CIE-LABlab(44.66, 66.01, -36.12)
CIE-LCHlch(44.66, 75.24, 331.32°)
OKLaboklab(55.13% 0.1898 -0.0993)
OKLCHoklch(55.13% 0.214 332.4)
XYZxyz(26.6982, 14.2969, 37.9052)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42CA7 #2CB439
analogous
#7D2CB4 #B42CA7 #B42C63
triadic
#B42CA7 #A7B42C #2CA7B4
tetradic
#B42CA7 #B47D2C #2CB439 #2C63B4
square
#B42CA7 #B47D2C #2CB439 #2C63B4
split-complementary
#B42CA7 #63B42C #2CB47D
monochromatic
#52144C #832079 #B42CA7 #D34AC6 #DF7CD5

Accessibility & contrast

On white

5.44
#B42CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B42CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42CA7
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42CA7#FFFFFF#000000##FFFFFF
##B42CA71.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235DAA
Deuteranopia (green-blind)
#5A70A4
Tritanopia (blue-blind)
#BC3C67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42ca7;
/* rgb */ color: rgb(180, 44, 167);
/* oklch */ color: oklch(55.1% 0.214 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce74c1',
    500: '#b42ca7',
    950: '#000000',
  },
}
SCSS
$custom: #b42ca7;
$custom-light: #ce74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ca7",
  "rgb": {
    "r": 180,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 305.735,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55128,
    "c": 0.21422,
    "h": 332.4
  },
  "luminance": 0.14295
}

Semantic roles & 50–950 ramp

primary
#B42CA7
secondary
#75C77D
accent
#E45344
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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