#B542E7#B542E7

#B542E7 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.1% C 0.243 H 313.4°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B542E7
RGBrgb(181, 66, 231)
HSLhsl(282, 77%, 58%)
HSVhsv(282, 71%, 91%)
CMYKcmyk(21.6%, 71.4%, 0%, 9.4%)
CIE-LABlab(51.26, 69.93, -62.60)
CIE-LCHlch(51.26, 93.85, 318.17°)
OKLaboklab(61.08% 0.1672 -0.1767)
OKLCHoklch(61.08% 0.243 313.4)
XYZxyz(35.4256, 19.4908, 77.4818)
Luminance0.1949 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542E7 #74E742
analogous
#6242E7 #B542E7 #E742C7
triadic
#B542E7 #E7B542 #42E7B5
tetradic
#B542E7 #E76242 #74E742 #42C7E7
square
#B542E7 #E76242 #74E742 #42C7E7
split-complementary
#B542E7 #C7E742 #42E762
monochromatic
#72149B #9A1BD1 #B542E7 #CA78EE #E0AFF5

Accessibility & contrast

On white

4.29
#B542E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#B542E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542E7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542E7#FFFFFF#000000##000000
##B542E71.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#347DE3
Tritanopia (blue-blind)
#B06691
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b542e7;
/* rgb */ color: rgb(181, 66, 231);
/* oklch */ color: oklch(61.1% 0.243 313.4);
Tailwind
colors: {
  custom: {
    50: '#d080ef',
    500: '#b542e7',
    950: '#000000',
  },
}
SCSS
$custom: #b542e7;
$custom-light: #d080ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b542e7",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 281.818,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61079,
    "c": 0.24324,
    "h": 313.4
  },
  "luminance": 0.1949
}

Semantic roles & 50–950 ramp

primary
#B542E7
secondary
#B5E3A2
accent
#F4346E
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #B542E7

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

Preview Lab → · Contrast checker → · Palette generator →

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