#B538AA#B538AA

#B538AA is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.5% C 0.204 H 331.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#B538AA
RGBrgb(181, 56, 170)
HSLhsl(305, 53%, 46%)
HSVhsv(305, 69%, 71%)
CMYKcmyk(0%, 69.1%, 6.1%, 29%)
CIE-LABlab(46.39, 62.69, -35.15)
CIE-LCHlch(46.39, 71.88, 330.72°)
OKLaboklab(56.46% 0.1793 -0.0966)
OKLCHoklch(56.46% 0.204 331.7)
XYZxyz(27.7259, 15.5566, 39.5648)
Luminance0.1555 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538AA #38B543
analogous
#8238B5 #B538AA #B5386C
triadic
#B538AA #AAB538 #38AAB5
tetradic
#B538AA #B58238 #38B543 #386CB5
square
#B538AA #B58238 #38B543 #386CB5
split-complementary
#B538AA #6CB538 #38B582
monochromatic
#581B52 #862A7E #B538AA #CD5DC3 #DB8CD4

Accessibility & contrast

On white

5.11
#B538AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#B538AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538AA
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538AA#FFFFFF#000000##FFFFFF
##B538AA1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3063AD
Deuteranopia (green-blind)
#5E74A7
Tritanopia (blue-blind)
#BC456D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b538aa;
/* rgb */ color: rgb(181, 56, 170);
/* oklch */ color: oklch(56.5% 0.204 331.7);
Tailwind
colors: {
  custom: {
    50: '#cf79c3',
    500: '#b538aa',
    950: '#000000',
  },
}
SCSS
$custom: #b538aa;
$custom-light: #cf79c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b538aa",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 305.28,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56455,
    "c": 0.2037,
    "h": 331.7
  },
  "luminance": 0.15554
}

Semantic roles & 50–950 ramp

primary
#B538AA
secondary
#83C689
accent
#DC584C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B538AA

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

Preview Lab → · Contrast checker → · Palette generator →

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