#B538B8#B538B8

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

Color values

HEX#B538B8
RGBrgb(181, 56, 184)
HSLhsl(299, 53%, 47%)
HSVhsv(299, 70%, 72%)
CMYKcmyk(1.6%, 69.6%, 0%, 27.8%)
CIE-LABlab(47.12, 64.99, -42.22)
CIE-LCHlch(47.12, 77.50, 326.99°)
OKLaboklab(57.23% 0.1799 -0.1171)
OKLCHoklch(57.23% 0.215 326.9)
XYZxyz(29.1215, 16.1148, 46.9147)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538B8 #3BB838
analogous
#7538B8 #B538B8 #B8387B
triadic
#B538B8 #B8B538 #38B8B5
tetradic
#B538B8 #B87538 #3BB838 #387BB8
square
#B538B8 #B87538 #3BB838 #387BB8
split-complementary
#B538B8 #7BB838 #38B875
monochromatic
#591B5A #872A89 #B538B8 #CC5FCE #DB8EDD

Accessibility & contrast

On white

4.97
#B538B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B538B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538B8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538B8#FFFFFF#000000##FFFFFF
##B538B81.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F66BC
Deuteranopia (green-blind)
#5775B5
Tritanopia (blue-blind)
#BA4C74
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b538b8;
/* rgb */ color: rgb(181, 56, 184);
/* oklch */ color: oklch(57.2% 0.215 326.9);
Tailwind
colors: {
  custom: {
    50: '#cf7ace',
    500: '#b538b8',
    950: '#000000',
  },
}
SCSS
$custom: #b538b8;
$custom-light: #cf7ace;
$custom-dark: #000000;
JSON
{
  "hex": "#b538b8",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 298.594,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57225,
    "c": 0.21461,
    "h": 326.9
  },
  "luminance": 0.16113
}

Semantic roles & 50–950 ramp

primary
#B538B8
secondary
#86C785
accent
#DD4B4E
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B538B8

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

Preview Lab → · Contrast checker → · Palette generator →

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