#B542CE#B542CE

#B542CE is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.5% C 0.221 H 319.9°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B542CE
RGBrgb(181, 66, 206)
HSLhsl(289, 59%, 53%)
HSVhsv(289, 68%, 81%)
CMYKcmyk(12.1%, 68%, 0%, 19.2%)
CIE-LABlab(49.71, 65.12, -50.85)
CIE-LCHlch(49.71, 82.62, 322.01°)
OKLaboklab(59.48% 0.1692 -0.1423)
OKLCHoklch(59.48% 0.221 319.9)
XYZxyz(32.1435, 18.1780, 60.1961)
Luminance0.1818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542CE #5BCE42
analogous
#6F42CE #B542CE #CE42A1
triadic
#B542CE #CEB542 #42CEB5
tetradic
#B542CE #CE6F42 #5BCE42 #42A1CE
square
#B542CE #CE6F42 #5BCE42 #42A1CE
split-complementary
#B542CE #A1CE42 #42CE6F
monochromatic
#671F77 #912BA7 #B542CE #C873DB #DBA3E7

Accessibility & contrast

On white

4.53
#B542CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#B542CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542CE
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542CE#FFFFFF#000000##000000
##B542CE1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#046ED2
Deuteranopia (green-blind)
#4E7ACB
Tritanopia (blue-blind)
#B65B83
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b542ce;
/* rgb */ color: rgb(181, 66, 206);
/* oklch */ color: oklch(59.5% 0.221 319.9);
Tailwind
colors: {
  custom: {
    50: '#cf7fde',
    500: '#b542ce',
    950: '#000000',
  },
}
SCSS
$custom: #b542ce;
$custom-light: #cf7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#b542ce",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 289.286,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59483,
    "c": 0.22106,
    "h": 319.9
  },
  "luminance": 0.18176
}

Semantic roles & 50–950 ramp

primary
#B542CE
secondary
#A3D498
accent
#E24662
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B542CE

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

Preview Lab → · Contrast checker → · Palette generator →

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