#B538AC#B538AC

#B538AC is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.6% C 0.205 H 331.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B538AC
RGBrgb(181, 56, 172)
HSLhsl(304, 53%, 46%)
HSVhsv(304, 69%, 71%)
CMYKcmyk(0%, 69.1%, 5%, 29%)
CIE-LABlab(46.49, 63.01, -36.18)
CIE-LCHlch(46.49, 72.66, 330.14°)
OKLaboklab(56.56% 0.1795 -0.0995)
OKLCHoklch(56.56% 0.205 331)
XYZxyz(27.9166, 15.6328, 40.5688)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538AC #38B541
analogous
#8038B5 #B538AC #B5386E
triadic
#B538AC #ACB538 #38ACB5
tetradic
#B538AC #B58038 #38B541 #386EB5
square
#B538AC #B58038 #38B541 #386EB5
split-complementary
#B538AC #6EB538 #38B580
monochromatic
#581B53 #862A80 #B538AC #CD5DC5 #DB8CD6

Accessibility & contrast

On white

5.09
#B538AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#B538AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538AC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538AC#FFFFFF#000000##FFFFFF
##B538AC1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E63AF
Deuteranopia (green-blind)
#5D74A9
Tritanopia (blue-blind)
#BC466E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b538ac;
/* rgb */ color: rgb(181, 56, 172);
/* oklch */ color: oklch(56.6% 0.205 331.0);
Tailwind
colors: {
  custom: {
    50: '#cf79c5',
    500: '#b538ac',
    950: '#000000',
  },
}
SCSS
$custom: #b538ac;
$custom-light: #cf79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b538ac",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 304.32,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56562,
    "c": 0.20523,
    "h": 331
  },
  "luminance": 0.15631
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B538AC

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

Preview Lab → · Contrast checker → · Palette generator →

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