#B538CD#B538CD

#B538CD is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.5% C 0.232 H 320.6°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B538CD
RGBrgb(181, 56, 205)
HSLhsl(290, 60%, 51%)
HSVhsv(290, 73%, 80%)
CMYKcmyk(11.7%, 72.7%, 0%, 19.6%)
CIE-LABlab(48.34, 68.66, -52.48)
CIE-LCHlch(48.34, 86.41, 322.61°)
OKLaboklab(58.48% 0.1792 -0.147)
OKLCHoklch(58.48% 0.232 320.6)
XYZxyz(31.4884, 17.0615, 59.3804)
Luminance0.1706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538CD #50CD38
analogous
#6A38CD #B538CD #CD389A
triadic
#B538CD #CDB538 #38CDB5
tetradic
#B538CD #CD6A38 #50CD38 #389ACD
square
#B538CD #CD6A38 #50CD38 #389ACD
split-complementary
#B538CD #9ACD38 #38CD6A
monochromatic
#611C6F #8C28A0 #B538CD #C769D9 #D99AE6

Accessibility & contrast

On white

4.76
#B538CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#B538CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538CD
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538CD#FFFFFF#000000##FFFFFF
##B538CD1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#4877CA
Tritanopia (blue-blind)
#B65580
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b538cd;
/* rgb */ color: rgb(181, 56, 205);
/* oklch */ color: oklch(58.5% 0.232 320.6);
Tailwind
colors: {
  custom: {
    50: '#cf7bdd',
    500: '#b538cd',
    950: '#000000',
  },
}
SCSS
$custom: #b538cd;
$custom-light: #cf7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b538cd",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 290.336,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58482,
    "c": 0.23172,
    "h": 320.6
  },
  "luminance": 0.1706
}

Semantic roles & 50–950 ramp

primary
#B538CD
secondary
#9AD18F
accent
#E3455E
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B538CD

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

Preview Lab → · Contrast checker → · Palette generator →

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