#B538BD#B538BD

#B538BD is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.5% C 0.219 H 325.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#B538BD
RGBrgb(181, 56, 189)
HSLhsl(296, 54%, 48%)
HSVhsv(296, 70%, 74%)
CMYKcmyk(4.2%, 70.4%, 0%, 25.9%)
CIE-LABlab(47.40, 65.84, -44.70)
CIE-LCHlch(47.40, 79.58, 325.82°)
OKLaboklab(57.51% 0.1799 -0.1243)
OKLCHoklch(57.51% 0.219 325.4)
XYZxyz(29.6549, 16.3281, 49.7239)
Luminance0.1633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538BD #40BD38
analogous
#7238BD #B538BD #BD3882
triadic
#B538BD #BDB538 #38BDB5
tetradic
#B538BD #BD7238 #40BD38 #3882BD
square
#B538BD #BD7238 #40BD38 #3882BD
split-complementary
#B538BD #82BD38 #38BD72
monochromatic
#5B1C5F #882A8E #B538BD #CA62D0 #DA91DE

Accessibility & contrast

On white

4.92
#B538BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B538BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538BD
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538BD#FFFFFF#000000##FFFFFF
##B538BD1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1567C1
Deuteranopia (green-blind)
#5476BA
Tritanopia (blue-blind)
#B94E77
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b538bd;
/* rgb */ color: rgb(181, 56, 189);
/* oklch */ color: oklch(57.5% 0.219 325.4);
Tailwind
colors: {
  custom: {
    50: '#cf7ad1',
    500: '#b538bd',
    950: '#000000',
  },
}
SCSS
$custom: #b538bd;
$custom-light: #cf7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#b538bd",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 296.391,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57514,
    "c": 0.21862,
    "h": 325.4
  },
  "luminance": 0.16326
}

Semantic roles & 50–950 ramp

primary
#B538BD
secondary
#8BC987
accent
#DE4A53
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B538BD

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

Preview Lab → · Contrast checker → · Palette generator →

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