#B538D2#B538D2

#B538D2 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.8% C 0.236 H 319.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B538D2
RGBrgb(181, 56, 210)
HSLhsl(289, 63%, 52%)
HSVhsv(289, 73%, 82%)
CMYKcmyk(13.8%, 73.3%, 0%, 17.6%)
CIE-LABlab(48.64, 69.56, -54.86)
CIE-LCHlch(48.64, 88.59, 321.74°)
OKLaboklab(58.8% 0.1787 -0.1539)
OKLCHoklch(58.8% 0.236 319.3)
XYZxyz(32.1016, 17.3068, 62.6099)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538D2 #55D238
analogous
#6838D2 #B538D2 #D238A2
triadic
#B538D2 #D2B538 #38D2B5
tetradic
#B538D2 #D26838 #55D238 #38A2D2
square
#B538D2 #D26838 #55D238 #38A2D2
split-complementary
#B538D2 #A2D238 #38D268
monochromatic
#641A75 #8F26A7 #B538D2 #C86ADD #DA9CE9

Accessibility & contrast

On white

4.71
#B538D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B538D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538D2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538D2#FFFFFF#000000##FFFFFF
##B538D21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#4378CF
Tritanopia (blue-blind)
#B55783
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b538d2;
/* rgb */ color: rgb(181, 56, 210);
/* oklch */ color: oklch(58.8% 0.236 319.3);
Tailwind
colors: {
  custom: {
    50: '#cf7be0',
    500: '#b538d2',
    950: '#000000',
  },
}
SCSS
$custom: #b538d2;
$custom-light: #cf7be0;
$custom-dark: #000000;
JSON
{
  "hex": "#b538d2",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 288.701,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58798,
    "c": 0.23589,
    "h": 319.3
  },
  "luminance": 0.17305
}

Semantic roles & 50–950 ramp

primary
#B538D2
secondary
#9ED591
accent
#E64261
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B538D2

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

Preview Lab → · Contrast checker → · Palette generator →

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