#B54FEC#B54FEC

#B54FEC is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.8% C 0.233 H 311.3°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B54FEC
RGBrgb(181, 79, 236)
HSLhsl(279, 81%, 62%)
HSVhsv(279, 67%, 93%)
CMYKcmyk(23.3%, 66.5%, 0%, 7.5%)
CIE-LABlab(53.46, 65.64, -61.86)
CIE-LCHlch(53.46, 90.19, 316.70°)
OKLaboklab(62.76% 0.1536 -0.1746)
OKLCHoklch(62.76% 0.233 311.3)
XYZxyz(36.9895, 21.4727, 81.5367)
Luminance0.2147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B54FEC #86EC4F
analogous
#674FEC #B54FEC #EC4FD5
triadic
#B54FEC #ECB54F #4FECB5
tetradic
#B54FEC #EC674F #86EC4F #4FD5EC
square
#B54FEC #EC674F #86EC4F #4FD5EC
split-complementary
#B54FEC #D5EC4F #4FEC67
monochromatic
#7813AE #9D19E5 #B54FEC #CC86F2 #E3BDF8

Accessibility & contrast

On white

3.97
#B54FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#B54FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B54FEC
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B54FEC#FFFFFF#000000##000000
##B54FEC1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#3C82E8
Tritanopia (blue-blind)
#AE6F97
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b54fec;
/* rgb */ color: rgb(181, 79, 236);
/* oklch */ color: oklch(62.8% 0.233 311.3);
Tailwind
colors: {
  custom: {
    50: '#cf87f3',
    500: '#b54fec',
    950: '#000000',
  },
}
SCSS
$custom: #b54fec;
$custom-light: #cf87f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b54fec",
  "rgb": {
    "r": 181,
    "g": 79,
    "b": 236
  },
  "hsl": {
    "h": 278.981,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62756,
    "c": 0.23252,
    "h": 311.3
  },
  "luminance": 0.21472
}

Semantic roles & 50–950 ramp

primary
#B54FEC
secondary
#C3E8AE
accent
#DD0953
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B54FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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