#B538D1#B538D1

#B538D1 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.7% C 0.235 H 319.5°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B538D1
RGBrgb(181, 56, 209)
HSLhsl(289, 62%, 52%)
HSVhsv(289, 73%, 82%)
CMYKcmyk(13.4%, 73.2%, 0%, 18%)
CIE-LABlab(48.58, 69.38, -54.38)
CIE-LCHlch(48.58, 88.15, 321.91°)
OKLaboklab(58.74% 0.1788 -0.1525)
OKLCHoklch(58.74% 0.235 319.5)
XYZxyz(31.9774, 17.2571, 61.9558)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538D1 #54D138
analogous
#6938D1 #B538D1 #D138A0
triadic
#B538D1 #D1B538 #38D1B5
tetradic
#B538D1 #D16938 #54D138 #38A0D1
square
#B538D1 #D16938 #54D138 #38A0D1
split-complementary
#B538D1 #A0D138 #38D169
monochromatic
#641B74 #8E26A6 #B538D1 #C76ADC #DA9BE8

Accessibility & contrast

On white

4.72
#B538D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B538D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538D1
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538D1#FFFFFF#000000##FFFFFF
##B538D11.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#4478CE
Tritanopia (blue-blind)
#B55782
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b538d1;
/* rgb */ color: rgb(181, 56, 209);
/* oklch */ color: oklch(58.7% 0.235 319.5);
Tailwind
colors: {
  custom: {
    50: '#cf7be0',
    500: '#b538d1',
    950: '#000000',
  },
}
SCSS
$custom: #b538d1;
$custom-light: #cf7be0;
$custom-dark: #000000;
JSON
{
  "hex": "#b538d1",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 289.02,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58735,
    "c": 0.23505,
    "h": 319.5
  },
  "luminance": 0.17256
}

Semantic roles & 50–950 ramp

primary
#B538D1
secondary
#9DD491
accent
#E64260
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B538D1

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

Preview Lab → · Contrast checker → · Palette generator →

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