#B538D9#B538D9

#B538D9 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.3% C 0.242 H 317.4°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B538D9
RGBrgb(181, 56, 217)
HSLhsl(287, 68%, 54%)
HSVhsv(287, 74%, 85%)
CMYKcmyk(16.6%, 74.2%, 0%, 14.9%)
CIE-LABlab(49.09, 70.86, -58.15)
CIE-LCHlch(49.09, 91.66, 320.62°)
OKLaboklab(59.25% 0.178 -0.1636)
OKLCHoklch(59.25% 0.242 317.4)
XYZxyz(32.9928, 17.6633, 67.3037)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538D9 #5CD938
analogous
#6438D9 #B538D9 #D938AC
triadic
#B538D9 #D9B538 #38D9B5
tetradic
#B538D9 #D96438 #5CD938 #38ACD9
square
#B538D9 #D96438 #5CD938 #38ACD9
split-complementary
#B538D9 #ACD938 #38D964
monochromatic
#68187E #9222B2 #B538D9 #C86BE3 #DB9FED

Accessibility & contrast

On white

4.63
#B538D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#B538D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B538D9
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538D9#FFFFFF#000000##FFFFFF
##B538D91.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#3C78D5
Tritanopia (blue-blind)
#B35A87
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b538d9;
/* rgb */ color: rgb(181, 56, 217);
/* oklch */ color: oklch(59.3% 0.242 317.4);
Tailwind
colors: {
  custom: {
    50: '#d07be5',
    500: '#b538d9',
    950: '#000000',
  },
}
SCSS
$custom: #b538d9;
$custom-light: #d07be5;
$custom-dark: #000000;
JSON
{
  "hex": "#b538d9",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 286.584,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59252,
    "c": 0.24175,
    "h": 317.4
  },
  "luminance": 0.17662
}

Semantic roles & 50–950 ramp

primary
#B538D9
secondary
#A3D994
accent
#EB3D64
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B538D9

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

Preview Lab → · Contrast checker → · Palette generator →

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