#B538C7#B538C7

#B538C7 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.1% C 0.227 H 322.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B538C7
RGBrgb(181, 56, 199)
HSLhsl(292, 56%, 50%)
HSVhsv(292, 72%, 78%)
CMYKcmyk(9%, 71.9%, 0%, 22%)
CIE-LABlab(47.98, 67.58, -49.59)
CIE-LCHlch(47.98, 83.82, 323.73°)
OKLaboklab(58.11% 0.1795 -0.1385)
OKLCHoklch(58.11% 0.227 322.3)
XYZxyz(30.7780, 16.7774, 55.6390)
Luminance0.1678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538C7 #4AC738
analogous
#6E38C7 #B538C7 #C73891
triadic
#B538C7 #C7B538 #38C7B5
tetradic
#B538C7 #C76E38 #4AC738 #3891C7
square
#B538C7 #C76E38 #4AC738 #3891C7
split-complementary
#B538C7 #91C738 #38C76E
monochromatic
#5E1D67 #8A2B97 #B538C7 #C768D4 #D998E2

Accessibility & contrast

On white

4.82
#B538C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#B538C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538C7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538C7#FFFFFF#000000##FFFFFF
##B538C71.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#4D77C4
Tritanopia (blue-blind)
#B7527C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b538c7;
/* rgb */ color: rgb(181, 56, 199);
/* oklch */ color: oklch(58.1% 0.227 322.3);
Tailwind
colors: {
  custom: {
    50: '#cf7ad9',
    500: '#b538c7',
    950: '#000000',
  },
}
SCSS
$custom: #b538c7;
$custom-light: #cf7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#b538c7",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 292.448,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.58111,
    "c": 0.22676,
    "h": 322.3
  },
  "luminance": 0.16776
}

Semantic roles & 50–950 ramp

primary
#B538C7
secondary
#95CD8D
accent
#DF485B
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A15
muted
#837C83

Preview Lab

Preview with #B538C7

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

Preview Lab → · Contrast checker → · Palette generator →

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