#B54FEA#B54FEA

#B54FEA is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.6% C 0.231 H 311.8°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B54FEA
RGBrgb(181, 79, 234)
HSLhsl(279, 79%, 61%)
HSVhsv(279, 66%, 92%)
CMYKcmyk(22.6%, 66.2%, 0%, 8.2%)
CIE-LABlab(53.34, 65.22, -60.93)
CIE-LCHlch(53.34, 89.26, 316.95°)
OKLaboklab(62.63% 0.1537 -0.1719)
OKLCHoklch(62.63% 0.231 311.8)
XYZxyz(36.7006, 21.3572, 80.0150)
Luminance0.2136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B54FEA #84EA4F
analogous
#684FEA #B54FEA #EA4FD2
triadic
#B54FEA #EAB54F #4FEAB5
tetradic
#B54FEA #EA684F #84EA4F #4FD2EA
square
#B54FEA #EA684F #84EA4F #4FD2EA
split-complementary
#B54FEA #D2EA4F #4FEA68
monochromatic
#7714AA #9D1BE1 #B54FEA #CC86F1 #E3BCF7

Accessibility & contrast

On white

3.98
#B54FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#B54FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B54FEA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B54FEA#FFFFFF#000000##000000
##B54FEA1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEF
Deuteranopia (green-blind)
#3F81E6
Tritanopia (blue-blind)
#AF6F96
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b54fea;
/* rgb */ color: rgb(181, 79, 234);
/* oklch */ color: oklch(62.6% 0.231 311.8);
Tailwind
colors: {
  custom: {
    50: '#cf87f1',
    500: '#b54fea',
    950: '#000000',
  },
}
SCSS
$custom: #b54fea;
$custom-light: #cf87f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b54fea",
  "rgb": {
    "r": 181,
    "g": 79,
    "b": 234
  },
  "hsl": {
    "h": 279.484,
    "s": 78.68,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62627,
    "c": 0.2306,
    "h": 311.8
  },
  "luminance": 0.21356
}

Semantic roles & 50–950 ramp

primary
#B54FEA
secondary
#C1E7AD
accent
#DB0B52
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B54FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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