#B542DF#B542DF

#B542DF is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.6% C 0.236 H 315.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B542DF
RGBrgb(181, 66, 223)
HSLhsl(284, 71%, 57%)
HSVhsv(284, 70%, 87%)
CMYKcmyk(18.8%, 70.4%, 0%, 12.5%)
CIE-LABlab(50.74, 68.36, -58.90)
CIE-LCHlch(50.74, 90.23, 319.25°)
OKLaboklab(60.55% 0.168 -0.1658)
OKLCHoklch(60.55% 0.236 315.4)
XYZxyz(34.3214, 19.0492, 71.6667)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542DF #6CDF42
analogous
#6742DF #B542DF #DF42BB
triadic
#B542DF #DFB542 #42DFB5
tetradic
#B542DF #DF6742 #6CDF42 #42BBDF
square
#B542DF #DF6742 #6CDF42 #42BBDF
split-complementary
#B542DF #BBDF42 #42DF67
monochromatic
#6F188E #9821C3 #B542DF #C976E8 #DEABF1

Accessibility & contrast

On white

4.37
#B542DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#B542DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542DF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542DF#FFFFFF#000000##000000
##B542DF1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b542df;
/* rgb */ color: rgb(181, 66, 223);
/* oklch */ color: oklch(60.6% 0.236 315.4);
Tailwind
colors: {
  custom: {
    50: '#cf80ea',
    500: '#b542df',
    950: '#000000',
  },
}
SCSS
$custom: #b542df;
$custom-light: #cf80ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b542df",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 283.949,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60552,
    "c": 0.23609,
    "h": 315.4
  },
  "luminance": 0.19048
}

Semantic roles & 50–950 ramp

primary
#B542DF
secondary
#AFDF9E
accent
#EE3A6A
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B542DF

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

Preview Lab → · Contrast checker → · Palette generator →

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