#B538B9#B538B9

#B538B9 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.3% C 0.215 H 326.6°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B538B9
RGBrgb(181, 56, 185)
HSLhsl(298, 54%, 47%)
HSVhsv(298, 70%, 73%)
CMYKcmyk(2.2%, 69.7%, 0%, 27.5%)
CIE-LABlab(47.18, 65.16, -42.72)
CIE-LCHlch(47.18, 77.91, 326.75°)
OKLaboklab(57.28% 0.1799 -0.1185)
OKLCHoklch(57.28% 0.215 326.6)
XYZxyz(29.2267, 16.1569, 47.4687)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538B9 #3CB938
analogous
#7538B9 #B538B9 #B9387C
triadic
#B538B9 #B9B538 #38B9B5
tetradic
#B538B9 #B97538 #3CB938 #387CB9
square
#B538B9 #B97538 #3CB938 #387CB9
split-complementary
#B538B9 #7CB938 #38B975
monochromatic
#591C5B #872A8A #B538B9 #CB5FCF #DB8EDD

Accessibility & contrast

On white

4.96
#B538B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B538B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538B9
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538B9#FFFFFF#000000##FFFFFF
##B538B91.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D66BD
Deuteranopia (green-blind)
#5675B6
Tritanopia (blue-blind)
#BA4C75
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b538b9;
/* rgb */ color: rgb(181, 56, 185);
/* oklch */ color: oklch(57.3% 0.215 326.6);
Tailwind
colors: {
  custom: {
    50: '#cf7ace',
    500: '#b538b9',
    950: '#000000',
  },
}
SCSS
$custom: #b538b9;
$custom-light: #cf7ace;
$custom-dark: #000000;
JSON
{
  "hex": "#b538b9",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 298.14,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57282,
    "c": 0.2154,
    "h": 326.6
  },
  "luminance": 0.16155
}

Semantic roles & 50–950 ramp

primary
#B538B9
secondary
#87C885
accent
#DD4B4F
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B538B9

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

Preview Lab → · Contrast checker → · Palette generator →

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