#B54FAC#B54FAC

#B54FAC is a mid, vivid purple. Relative luminance 0.184; OKLCH L 59.1% C 0.173 H 331.0°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B54FAC
RGBrgb(181, 79, 172)
HSLhsl(305, 41%, 51%)
HSVhsv(305, 56%, 71%)
CMYKcmyk(0%, 56.4%, 5%, 29%)
CIE-LABlab(49.97, 53.39, -30.71)
CIE-LCHlch(49.97, 61.59, 330.09°)
OKLaboklab(59.1% 0.1518 -0.084)
OKLCHoklch(59.1% 0.173 331)
XYZxyz(29.2983, 18.3962, 41.0294)
Luminance0.1839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B54FAC #4FB558
analogous
#8B4FB5 #B54FAC #B54F79
triadic
#B54FAC #ACB54F #4FACB5
tetradic
#B54FAC #B58B4F #4FB558 #4F79B5
square
#B54FAC #B58B4F #4FB558 #4F79B5
split-complementary
#B54FAC #79B54F #4FB58B
monochromatic
#61295C #8C3B85 #B54FAC #C77AC0 #D9A5D5

Accessibility & contrast

On white

4.49
#B54FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#B54FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B54FAC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B54FAC#FFFFFF#000000##000000
##B54FAC1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6EAF
Deuteranopia (green-blind)
#6A7CA9
Tritanopia (blue-blind)
#BC5876
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b54fac;
/* rgb */ color: rgb(181, 79, 172);
/* oklch */ color: oklch(59.1% 0.173 331.0);
Tailwind
colors: {
  custom: {
    50: '#ce86c5',
    500: '#b54fac',
    950: '#000000',
  },
}
SCSS
$custom: #b54fac;
$custom-light: #ce86c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b54fac",
  "rgb": {
    "r": 181,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 305.294,
    "s": 40.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59098,
    "c": 0.17348,
    "h": 331
  },
  "luminance": 0.18394
}

Semantic roles & 50–950 ramp

primary
#B54FAC
secondary
#99C69D
accent
#D16257
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B54FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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