#B42FBC#B42FBC

#B42FBC is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.6% C 0.227 H 325.5°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B42FBC
RGBrgb(180, 47, 188)
HSLhsl(297, 60%, 46%)
HSVhsv(297, 75%, 74%)
CMYKcmyk(4.3%, 75%, 0%, 26.3%)
CIE-LABlab(46.14, 68.45, -46.15)
CIE-LCHlch(46.14, 82.55, 326.02°)
OKLaboklab(56.56% 0.1871 -0.1284)
OKLCHoklch(56.56% 0.227 325.5)
XYZxyz(28.9154, 15.3691, 49.0107)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FBC #37BC2F
analogous
#6D2FBC #B42FBC #BC2F7D
triadic
#B42FBC #BCB42F #2FBCB4
tetradic
#B42FBC #BC6D2F #37BC2F #2F7DBC
square
#B42FBC #BC6D2F #37BC2F #2F7DBC
split-complementary
#B42FBC #7DBC2F #2FBC6D
monochromatic
#56175A #85238B #B42FBC #CD54D4 #DB85E0

Accessibility & contrast

On white

5.16
#B42FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B42FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FBC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FBC#FFFFFF#000000##FFFFFF
##B42FBC1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#4F73B9
Tritanopia (blue-blind)
#B84874
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b42fbc;
/* rgb */ color: rgb(180, 47, 188);
/* oklch */ color: oklch(56.6% 0.227 325.5);
Tailwind
colors: {
  custom: {
    50: '#ce76d1',
    500: '#b42fbc',
    950: '#000000',
  },
}
SCSS
$custom: #b42fbc;
$custom-light: #ce76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fbc",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 296.596,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5656,
    "c": 0.22695,
    "h": 325.5
  },
  "luminance": 0.15367
}

Semantic roles & 50–950 ramp

primary
#B42FBC
secondary
#81CA7D
accent
#E3454E
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B42FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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