#B538B7#B538B7

#B538B7 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.2% C 0.214 H 327.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B538B7
RGBrgb(181, 56, 183)
HSLhsl(299, 53%, 47%)
HSVhsv(299, 69%, 72%)
CMYKcmyk(1.1%, 69.4%, 0%, 28.2%)
CIE-LABlab(47.07, 64.82, -41.72)
CIE-LCHlch(47.07, 77.09, 327.23°)
OKLaboklab(57.17% 0.1799 -0.1156)
OKLCHoklch(57.17% 0.214 327.3)
XYZxyz(29.0170, 16.0730, 46.3646)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538B7 #3AB738
analogous
#7638B7 #B538B7 #B7387A
triadic
#B538B7 #B7B538 #38B7B5
tetradic
#B538B7 #B77638 #3AB738 #387AB7
square
#B538B7 #B77638 #3AB738 #387AB7
split-complementary
#B538B7 #7AB738 #38B776
monochromatic
#581B59 #872A88 #B538B7 #CC5ECE #DB8DDC

Accessibility & contrast

On white

4.98
#B538B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B538B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538B7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538B7#FFFFFF#000000##FFFFFF
##B538B71.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2165BB
Deuteranopia (green-blind)
#5775B4
Tritanopia (blue-blind)
#BA4B74
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b538b7;
/* rgb */ color: rgb(181, 56, 183);
/* oklch */ color: oklch(57.2% 0.214 327.3);
Tailwind
colors: {
  custom: {
    50: '#cf7acd',
    500: '#b538b7',
    950: '#000000',
  },
}
SCSS
$custom: #b538b7;
$custom-light: #cf7acd;
$custom-dark: #000000;
JSON
{
  "hex": "#b538b7",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 299.055,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57168,
    "c": 0.21381,
    "h": 327.3
  },
  "luminance": 0.16071
}

Semantic roles & 50–950 ramp

primary
#B538B7
secondary
#85C784
accent
#DD4B4E
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B538B7

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

Preview Lab → · Contrast checker → · Palette generator →

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