#B42BC6#B42BC6

#B42BC6 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.9% C 0.238 H 322.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B42BC6
RGBrgb(180, 43, 198)
HSLhsl(293, 64%, 47%)
HSVhsv(293, 78%, 78%)
CMYKcmyk(9.1%, 78.3%, 0%, 22.4%)
CIE-LABlab(46.33, 71.33, -51.66)
CIE-LCHlch(46.33, 88.07, 324.08°)
OKLaboklab(56.89% 0.1896 -0.1445)
OKLCHoklch(56.89% 0.238 322.7)
XYZxyz(29.8783, 15.5101, 54.8351)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BC6 #3DC62B
analogous
#662BC6 #B42BC6 #C62B8B
triadic
#B42BC6 #C6B42B #2BC6B4
tetradic
#B42BC6 #C6662B #3DC62B #2B8BC6
square
#B42BC6 #C6662B #3DC62B #2B8BC6
split-complementary
#B42BC6 #8BC62B #2BC666
monochromatic
#591561 #862094 #B42BC6 #CA54DA #DA87E5

Accessibility & contrast

On white

5.12
#B42BC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B42BC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42BC6
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BC6#FFFFFF#000000##FFFFFF
##B42BC61.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#4573C3
Tritanopia (blue-blind)
#B64B79
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b42bc6;
/* rgb */ color: rgb(180, 43, 198);
/* oklch */ color: oklch(56.9% 0.238 322.7);
Tailwind
colors: {
  custom: {
    50: '#cf75d8',
    500: '#b42bc6',
    950: '#000000',
  },
}
SCSS
$custom: #b42bc6;
$custom-light: #cf75d8;
$custom-dark: #000000;
JSON
{
  "hex": "#b42bc6",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 198
  },
  "hsl": {
    "h": 293.032,
    "s": 64.315,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56886,
    "c": 0.23844,
    "h": 322.7
  },
  "luminance": 0.15508
}

Semantic roles & 50–950 ramp

primary
#B42BC6
secondary
#88CE7F
accent
#E74054
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140914
muted
#837B83

Preview Lab

Preview with #B42BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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