#B538A4#B538A4

#B538A4 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.1% C 0.199 H 333.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B538A4
RGBrgb(181, 56, 164)
HSLhsl(308, 53%, 46%)
HSVhsv(308, 69%, 71%)
CMYKcmyk(0%, 69.1%, 9.4%, 29%)
CIE-LABlab(46.09, 61.75, -32.07)
CIE-LCHlch(46.09, 69.58, 332.56°)
OKLaboklab(56.14% 0.1789 -0.0877)
OKLCHoklch(56.14% 0.199 333.9)
XYZxyz(27.1713, 15.3347, 36.6436)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538A4 #38B549
analogous
#8838B5 #B538A4 #B53866
triadic
#B538A4 #A4B538 #38A4B5
tetradic
#B538A4 #B58838 #38B549 #3866B5
square
#B538A4 #B58838 #38B549 #3866B5
split-complementary
#B538A4 #66B538 #38B588
monochromatic
#581B4F #862A7A #B538A4 #CD5DBE #DB8CD1

Accessibility & contrast

On white

5.16
#B538A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B538A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538A4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538A4#FFFFFF#000000##FFFFFF
##B538A41.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A7
Deuteranopia (green-blind)
#6174A1
Tritanopia (blue-blind)
#BD4369
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b538a4;
/* rgb */ color: rgb(181, 56, 164);
/* oklch */ color: oklch(56.1% 0.199 333.9);
Tailwind
colors: {
  custom: {
    50: '#cf79bf',
    500: '#b538a4',
    950: '#000000',
  },
}
SCSS
$custom: #b538a4;
$custom-light: #cf79bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b538a4",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 164
  },
  "hsl": {
    "h": 308.16,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56143,
    "c": 0.19921,
    "h": 333.9
  },
  "luminance": 0.15332
}

Semantic roles & 50–950 ramp

primary
#B538A4
secondary
#83C68C
accent
#DC5F4C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B538A4

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

Preview Lab → · Contrast checker → · Palette generator →

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