#B538DF#B538DF

#B538DF is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.7% C 0.247 H 315.9°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B538DF
RGBrgb(181, 56, 223)
HSLhsl(285, 72%, 55%)
HSVhsv(285, 75%, 87%)
CMYKcmyk(18.8%, 74.9%, 0%, 12.5%)
CIE-LABlab(49.47, 71.98, -60.94)
CIE-LCHlch(49.47, 94.32, 319.75°)
OKLaboklab(59.65% 0.1772 -0.1718)
OKLCHoklch(59.65% 0.247 315.9)
XYZxyz(33.7874, 17.9812, 71.4887)
Luminance0.1798 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538DF #62DF38
analogous
#6238DF #B538DF #DF38B6
triadic
#B538DF #DFB538 #38DFB5
tetradic
#B538DF #DF6238 #62DF38 #38B6DF
square
#B538DF #DF6238 #62DF38 #38B6DF
split-complementary
#B538DF #B6DF38 #38DF62
monochromatic
#6A1687 #941EBC #B538DF #C96DE7 #DCA1F0

Accessibility & contrast

On white

4.57
#B538DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#B538DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B538DF
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538DF#FFFFFF#000000##000000
##B538DF1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#006EE4
Deuteranopia (green-blind)
#3579DB
Tritanopia (blue-blind)
#B25D8A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b538df;
/* rgb */ color: rgb(181, 56, 223);
/* oklch */ color: oklch(59.7% 0.247 315.9);
Tailwind
colors: {
  custom: {
    50: '#d07bea',
    500: '#b538df',
    950: '#000000',
  },
}
SCSS
$custom: #b538df;
$custom-light: #d07bea;
$custom-dark: #000000;
JSON
{
  "hex": "#b538df",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 223
  },
  "hsl": {
    "h": 284.91,
    "s": 72.294,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5965,
    "c": 0.24682,
    "h": 315.9
  },
  "luminance": 0.1798
}

Semantic roles & 50–950 ramp

primary
#B538DF
secondary
#A8DD96
accent
#EF3967
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B538DF

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

Preview Lab → · Contrast checker → · Palette generator →

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