#B538C1#B538C1

#B538C1 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.7% C 0.222 H 324.1°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B538C1
RGBrgb(181, 56, 193)
HSLhsl(295, 55%, 49%)
HSVhsv(295, 71%, 76%)
CMYKcmyk(6.2%, 71%, 0%, 24.3%)
CIE-LABlab(47.63, 66.53, -46.67)
CIE-LCHlch(47.63, 81.26, 324.95°)
OKLaboklab(57.75% 0.1798 -0.13)
OKLCHoklch(57.75% 0.222 324.1)
XYZxyz(30.0950, 16.5042, 52.0422)
Luminance0.1650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538C1 #44C138
analogous
#7138C1 #B538C1 #C13889
triadic
#B538C1 #C1B538 #38C1B5
tetradic
#B538C1 #C17138 #44C138 #3889C1
square
#B538C1 #C17138 #44C138 #3889C1
split-complementary
#B538C1 #89C138 #38C171
monochromatic
#5C1C62 #892A92 #B538C1 #C864D2 #D994E0

Accessibility & contrast

On white

4.88
#B538C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#B538C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538C1
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538C1#FFFFFF#000000##FFFFFF
##B538C11.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0967C5
Deuteranopia (green-blind)
#5176BE
Tritanopia (blue-blind)
#B85079
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b538c1;
/* rgb */ color: rgb(181, 56, 193);
/* oklch */ color: oklch(57.7% 0.222 324.1);
Tailwind
colors: {
  custom: {
    50: '#cf7ad4',
    500: '#b538c1',
    950: '#000000',
  },
}
SCSS
$custom: #b538c1;
$custom-light: #cf7ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#b538c1",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 294.745,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57749,
    "c": 0.22185,
    "h": 324.1
  },
  "luminance": 0.16502
}

Semantic roles & 50–950 ramp

primary
#B538C1
secondary
#90CB8A
accent
#DE4956
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B538C1

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

Preview Lab → · Contrast checker → · Palette generator →

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