#B542BC#B542BC

#B542BC is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.4% C 0.206 H 325.4°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B542BC
RGBrgb(181, 66, 188)
HSLhsl(297, 48%, 50%)
HSVhsv(297, 65%, 74%)
CMYKcmyk(3.7%, 64.9%, 0%, 26.3%)
CIE-LABlab(48.70, 61.85, -42.06)
CIE-LCHlch(48.70, 74.79, 325.79°)
OKLaboklab(58.43% 0.1693 -0.1166)
OKLCHoklch(58.43% 0.206 325.4)
XYZxyz(30.0807, 17.3529, 49.3322)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542BC #49BC42
analogous
#7842BC #B542BC #BC4286
triadic
#B542BC #BCB542 #42BCB5
tetradic
#B542BC #BC7842 #49BC42 #4286BC
square
#B542BC #BC7842 #49BC42 #4286BC
split-complementary
#B542BC #86BC42 #42BC78
monochromatic
#5E2261 #89328F #B542BC #C76FCC #D99CDC

Accessibility & contrast

On white

4.70
#B542BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B542BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B542BC
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542BC#FFFFFF#000000##FFFFFF
##B542BC1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6BC0
Deuteranopia (green-blind)
#5A79B9
Tritanopia (blue-blind)
#B95479
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b542bc;
/* rgb */ color: rgb(181, 66, 188);
/* oklch */ color: oklch(58.4% 0.206 325.4);
Tailwind
colors: {
  custom: {
    50: '#ce7fd1',
    500: '#b542bc',
    950: '#000000',
  },
}
SCSS
$custom: #b542bc;
$custom-light: #ce7fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b542bc",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 296.557,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58431,
    "c": 0.20556,
    "h": 325.4
  },
  "luminance": 0.17351
}

Semantic roles & 50–950 ramp

primary
#B542BC
secondary
#94C991
accent
#D85058
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B542BC

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

Preview Lab → · Contrast checker → · Palette generator →

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