#B542DE#B542DE

#B542DE is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.5% C 0.235 H 315.6°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#B542DE
RGBrgb(181, 66, 222)
HSLhsl(284, 70%, 56%)
HSVhsv(284, 70%, 87%)
CMYKcmyk(18.5%, 70.3%, 0%, 12.9%)
CIE-LABlab(50.68, 68.16, -58.43)
CIE-LCHlch(50.68, 89.78, 319.40°)
OKLaboklab(60.49% 0.1681 -0.1645)
OKLCHoklch(60.49% 0.235 315.6)
XYZxyz(34.1870, 18.9954, 70.9587)
Luminance0.1899 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542DE #6BDE42
analogous
#6742DE #B542DE #DE42B9
triadic
#B542DE #DEB542 #42DEB5
tetradic
#B542DE #DE6742 #6BDE42 #42B9DE
square
#B542DE #DE6742 #6BDE42 #42B9DE
split-complementary
#B542DE #B9DE42 #42DE67
monochromatic
#6E198D #9722C1 #B542DE #C976E7 #DEAAF0

Accessibility & contrast

On white

4.38
#B542DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#B542DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542DE
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542DE#FFFFFF#000000##000000
##B542DE1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E2
Deuteranopia (green-blind)
#3F7CDA
Tritanopia (blue-blind)
#B2628C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b542de;
/* rgb */ color: rgb(181, 66, 222);
/* oklch */ color: oklch(60.5% 0.235 315.6);
Tailwind
colors: {
  custom: {
    50: '#cf80e9',
    500: '#b542de',
    950: '#000000',
  },
}
SCSS
$custom: #b542de;
$custom-light: #cf80e9;
$custom-dark: #000000;
JSON
{
  "hex": "#b542de",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 284.231,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60487,
    "c": 0.23519,
    "h": 315.6
  },
  "luminance": 0.18994
}

Semantic roles & 50–950 ramp

primary
#B542DE
secondary
#AFDE9E
accent
#ED3B6A
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B542DE

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

Preview Lab → · Contrast checker → · Palette generator →

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