#B538BB#B538BB

#B538BB is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.217 H 326.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B538BB
RGBrgb(181, 56, 187)
HSLhsl(297, 54%, 48%)
HSVhsv(297, 70%, 73%)
CMYKcmyk(3.2%, 70.1%, 0%, 26.7%)
CIE-LABlab(47.29, 65.50, -43.71)
CIE-LCHlch(47.29, 78.74, 326.28°)
OKLaboklab(57.4% 0.1799 -0.1214)
OKLCHoklch(57.4% 0.217 326)
XYZxyz(29.4393, 16.2419, 48.5885)
Luminance0.1624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538BB #3EBB38
analogous
#7438BB #B538BB #BB387F
triadic
#B538BB #BBB538 #38BBB5
tetradic
#B538BB #BB7438 #3EBB38 #387FBB
square
#B538BB #BB7438 #3EBB38 #387FBB
split-complementary
#B538BB #7FBB38 #38BB74
monochromatic
#5A1C5D #872A8C #B538BB #CA61D0 #DA90DE

Accessibility & contrast

On white

4.94
#B538BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B538BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538BB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538BB#FFFFFF#000000##FFFFFF
##B538BB1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A66BF
Deuteranopia (green-blind)
#5576B8
Tritanopia (blue-blind)
#BA4D76
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b538bb;
/* rgb */ color: rgb(181, 56, 187);
/* oklch */ color: oklch(57.4% 0.217 326.0);
Tailwind
colors: {
  custom: {
    50: '#cf7ad0',
    500: '#b538bb',
    950: '#000000',
  },
}
SCSS
$custom: #b538bb;
$custom-light: #cf7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#b538bb",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 297.252,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57397,
    "c": 0.217,
    "h": 326
  },
  "luminance": 0.1624
}

Semantic roles & 50–950 ramp

primary
#B538BB
secondary
#89C886
accent
#DD4B51
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B538BB

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

Preview Lab → · Contrast checker → · Palette generator →

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