#B538AB#B538AB

#B538AB is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.5% C 0.204 H 331.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#B538AB
RGBrgb(181, 56, 171)
HSLhsl(305, 53%, 46%)
HSVhsv(305, 69%, 71%)
CMYKcmyk(0%, 69.1%, 5.5%, 29%)
CIE-LABlab(46.44, 62.85, -35.67)
CIE-LCHlch(46.44, 72.27, 330.43°)
OKLaboklab(56.51% 0.1794 -0.0981)
OKLCHoklch(56.51% 0.204 331.3)
XYZxyz(27.8209, 15.5945, 40.0649)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538AB #38B542
analogous
#8138B5 #B538AB #B5386D
triadic
#B538AB #ABB538 #38ABB5
tetradic
#B538AB #B58138 #38B542 #386DB5
square
#B538AB #B58138 #38B542 #386DB5
split-complementary
#B538AB #6DB538 #38B581
monochromatic
#581B53 #862A7F #B538AB #CD5DC4 #DB8CD5

Accessibility & contrast

On white

5.10
#B538AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#B538AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538AB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538AB#FFFFFF#000000##FFFFFF
##B538AB1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#5E74A8
Tritanopia (blue-blind)
#BC466D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b538ab;
/* rgb */ color: rgb(181, 56, 171);
/* oklch */ color: oklch(56.5% 0.204 331.3);
Tailwind
colors: {
  custom: {
    50: '#cf79c4',
    500: '#b538ab',
    950: '#000000',
  },
}
SCSS
$custom: #b538ab;
$custom-light: #cf79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b538ab",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 304.8,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56509,
    "c": 0.20446,
    "h": 331.3
  },
  "luminance": 0.15592
}

Semantic roles & 50–950 ramp

primary
#B538AB
secondary
#83C688
accent
#DC574C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B538AB

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

Preview Lab → · Contrast checker → · Palette generator →

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