#B54CB2#B54CB2

#B54CB2 is a mid, vivid purple. Relative luminance 0.182; OKLCH L 59.0% C 0.183 H 328.7°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B54CB2
RGBrgb(181, 76, 178)
HSLhsl(302, 42%, 50%)
HSVhsv(302, 58%, 71%)
CMYKcmyk(0%, 58%, 1.7%, 29%)
CIE-LABlab(49.75, 55.80, -34.57)
CIE-LCHlch(49.75, 65.65, 328.22°)
OKLaboklab(59.03% 0.1565 -0.0951)
OKLCHoklch(59.03% 0.183 328.7)
XYZxyz(29.6760, 18.2089, 44.0624)
Luminance0.1821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B54CB2 #4CB54F
analogous
#834CB5 #B54CB2 #B54C7E
triadic
#B54CB2 #B2B54C #4CB2B5
tetradic
#B54CB2 #B5834C #4CB54F #4C7EB5
square
#B54CB2 #B5834C #4CB54F #4C7EB5
split-complementary
#B54CB2 #7EB54C #4CB583
monochromatic
#5F275E #8B3988 #B54CB2 #C777C5 #D9A3D7

Accessibility & contrast

On white

4.52
#B54CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#B54CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B54CB2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B54CB2#FFFFFF#000000##000000
##B54CB21.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#426DB5
Deuteranopia (green-blind)
#657BAF
Tritanopia (blue-blind)
#BB5878
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b54cb2;
/* rgb */ color: rgb(181, 76, 178);
/* oklch */ color: oklch(59.0% 0.183 328.7);
Tailwind
colors: {
  custom: {
    50: '#ce84c9',
    500: '#b54cb2',
    950: '#000000',
  },
}
SCSS
$custom: #b54cb2;
$custom-light: #ce84c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b54cb2",
  "rgb": {
    "r": 181,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 301.714,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59026,
    "c": 0.18311,
    "h": 328.7
  },
  "luminance": 0.18207
}

Semantic roles & 50–950 ramp

primary
#B54CB2
secondary
#97C698
accent
#D15A56
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B54CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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