#B54EC7#B54EC7

#B54EC7 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.4% C 0.199 H 321.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B54EC7
RGBrgb(181, 78, 199)
HSLhsl(291, 52%, 54%)
HSVhsv(291, 61%, 78%)
CMYKcmyk(9%, 60.8%, 0%, 22%)
CIE-LABlab(51.15, 58.72, -44.54)
CIE-LCHlch(51.15, 73.70, 322.82°)
OKLaboklab(60.39% 0.1555 -0.1239)
OKLCHoklch(60.39% 0.199 321.4)
XYZxyz(32.0881, 19.3976, 56.0757)
Luminance0.1940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B54EC7 #60C74E
analogous
#794EC7 #B54EC7 #C74E9D
triadic
#B54EC7 #C7B54E #4EC7B5
tetradic
#B54EC7 #C7794E #60C74E #4E9DC7
square
#B54EC7 #C7794E #60C74E #4E9DC7
split-complementary
#B54EC7 #9DC74E #4EC779
monochromatic
#692575 #9334A4 #B54EC7 #C87CD6 #DCABE4

Accessibility & contrast

On white

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

On black

4.88
#B54EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B54EC7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B54EC7#FFFFFF#000000##000000
##B54EC71.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3372CB
Deuteranopia (green-blind)
#5B7EC4
Tritanopia (blue-blind)
#B76183
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b54ec7;
/* rgb */ color: rgb(181, 78, 199);
/* oklch */ color: oklch(60.4% 0.199 321.4);
Tailwind
colors: {
  custom: {
    50: '#ce86d8',
    500: '#b54ec7',
    950: '#000000',
  },
}
SCSS
$custom: #b54ec7;
$custom-light: #ce86d8;
$custom-dark: #000000;
JSON
{
  "hex": "#b54ec7",
  "rgb": {
    "r": 181,
    "g": 78,
    "b": 199
  },
  "hsl": {
    "h": 291.074,
    "s": 51.931,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60394,
    "c": 0.19889,
    "h": 321.4
  },
  "luminance": 0.19396
}

Semantic roles & 50–950 ramp

primary
#B54EC7
secondary
#A6D29F
accent
#DB4C62
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #B54EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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