#B548D9#B548D9

#B548D9 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.8% C 0.223 H 316.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B548D9
RGBrgb(181, 72, 217)
HSLhsl(285, 66%, 57%)
HSVhsv(285, 67%, 85%)
CMYKcmyk(16.6%, 66.8%, 0%, 14.9%)
CIE-LABlab(51.23, 64.78, -54.70)
CIE-LCHlch(51.23, 84.79, 319.82°)
OKLaboklab(60.78% 0.1623 -0.1536)
OKLCHoklch(60.78% 0.223 316.6)
XYZxyz(33.8959, 19.4696, 67.6047)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B548D9 #6CD948
analogous
#6C48D9 #B548D9 #D948B5
triadic
#B548D9 #D9B548 #48D9B5
tetradic
#B548D9 #D96C48 #6CD948 #48B5D9
square
#B548D9 #D96C48 #6CD948 #48B5D9
split-complementary
#B548D9 #B5D948 #48D96C
monochromatic
#6F1D8A #9827BD #B548D9 #C97BE4 #DEADEE

Accessibility & contrast

On white

4.29
#B548D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#B548D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B548D9
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B548D9#FFFFFF#000000##000000
##B548D91.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#497DD6
Tritanopia (blue-blind)
#B3648B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b548d9;
/* rgb */ color: rgb(181, 72, 217);
/* oklch */ color: oklch(60.8% 0.223 316.6);
Tailwind
colors: {
  custom: {
    50: '#cf83e5',
    500: '#b548d9',
    950: '#000000',
  },
}
SCSS
$custom: #b548d9;
$custom-light: #cf83e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b548d9",
  "rgb": {
    "r": 181,
    "g": 72,
    "b": 217
  },
  "hsl": {
    "h": 285.103,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60783,
    "c": 0.22346,
    "h": 316.6
  },
  "luminance": 0.19468
}

Semantic roles & 50–950 ramp

primary
#B548D9
secondary
#AFDCA1
accent
#E93F69
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B548D9

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

Preview Lab → · Contrast checker → · Palette generator →

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