#B538B2#B538B2

#B538B2 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.9% C 0.210 H 328.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#B538B2
RGBrgb(181, 56, 178)
HSLhsl(301, 53%, 46%)
HSVhsv(301, 69%, 71%)
CMYKcmyk(0%, 69.1%, 1.7%, 29%)
CIE-LABlab(46.80, 63.99, -39.22)
CIE-LCHlch(46.80, 75.05, 328.50°)
OKLaboklab(56.89% 0.1798 -0.1083)
OKLCHoklch(56.89% 0.21 328.9)
XYZxyz(28.5058, 15.8685, 43.6724)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538B2 #38B53B
analogous
#7A38B5 #B538B2 #B53874
triadic
#B538B2 #B2B538 #38B2B5
tetradic
#B538B2 #B57A38 #38B53B #3874B5
square
#B538B2 #B57A38 #38B53B #3874B5
split-complementary
#B538B2 #74B538 #38B57A
monochromatic
#581B56 #862A84 #B538B2 #CD5DCA #DB8CDA

Accessibility & contrast

On white

5.03
#B538B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#B538B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538B2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538B2#FFFFFF#000000##FFFFFF
##B538B21.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#5A75AF
Tritanopia (blue-blind)
#BB4971
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b538b2;
/* rgb */ color: rgb(181, 56, 178);
/* oklch */ color: oklch(56.9% 0.210 328.9);
Tailwind
colors: {
  custom: {
    50: '#cf7ac9',
    500: '#b538b2',
    950: '#000000',
  },
}
SCSS
$custom: #b538b2;
$custom-light: #cf7ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#b538b2",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 301.44,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56888,
    "c": 0.20988,
    "h": 328.9
  },
  "luminance": 0.15866
}

Semantic roles & 50–950 ramp

primary
#B538B2
secondary
#83C685
accent
#DC4F4C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B538B2

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

Preview Lab → · Contrast checker → · Palette generator →

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