#B54EC8#B54EC8

#B54EC8 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.5% C 0.200 H 321.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B54EC8
RGBrgb(181, 78, 200)
HSLhsl(291, 53%, 55%)
HSVhsv(291, 61%, 78%)
CMYKcmyk(9.5%, 61%, 0%, 21.6%)
CIE-LABlab(51.20, 58.91, -45.03)
CIE-LCHlch(51.20, 74.15, 322.61°)
OKLaboklab(60.45% 0.1556 -0.1254)
OKLCHoklch(60.45% 0.2 321.1)
XYZxyz(32.2046, 19.4442, 56.6891)
Luminance0.1944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B54EC8 #61C84E
analogous
#784EC8 #B54EC8 #C84E9E
triadic
#B54EC8 #C8B54E #4EC8B5
tetradic
#B54EC8 #C8784E #61C84E #4E9EC8
square
#B54EC8 #C8784E #61C84E #4E9EC8
split-complementary
#B54EC8 #9EC84E #4EC878
monochromatic
#6A2577 #9433A5 #B54EC8 #C97DD7 #DCABE5

Accessibility & contrast

On white

4.30
#B54EC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#B54EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B54EC8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B54EC8#FFFFFF#000000##000000
##B54EC81.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3273CC
Deuteranopia (green-blind)
#5B7EC5
Tritanopia (blue-blind)
#B76184
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b54ec8;
/* rgb */ color: rgb(181, 78, 200);
/* oklch */ color: oklch(60.5% 0.200 321.1);
Tailwind
colors: {
  custom: {
    50: '#ce86d9',
    500: '#b54ec8',
    950: '#000000',
  },
}
SCSS
$custom: #b54ec8;
$custom-light: #ce86d9;
$custom-dark: #000000;
JSON
{
  "hex": "#b54ec8",
  "rgb": {
    "r": 181,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 290.656,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60451,
    "c": 0.19981,
    "h": 321.1
  },
  "luminance": 0.19443
}

Semantic roles & 50–950 ramp

primary
#B54EC8
secondary
#A7D39F
accent
#DC4C62
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C15
muted
#837D83

Preview Lab

Preview with #B54EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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