#B538A9#B538A9

#B538A9 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.203 H 332.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B538A9
RGBrgb(181, 56, 169)
HSLhsl(306, 53%, 46%)
HSVhsv(306, 69%, 71%)
CMYKcmyk(0%, 69.1%, 6.6%, 29%)
CIE-LABlab(46.34, 62.53, -34.64)
CIE-LCHlch(46.34, 71.49, 331.02°)
OKLaboklab(56.4% 0.1793 -0.0951)
OKLCHoklch(56.4% 0.203 332)
XYZxyz(27.6317, 15.5189, 39.0685)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538A9 #38B544
analogous
#8338B5 #B538A9 #B5386B
triadic
#B538A9 #A9B538 #38A9B5
tetradic
#B538A9 #B58338 #38B544 #386BB5
square
#B538A9 #B58338 #38B544 #386BB5
split-complementary
#B538A9 #6BB538 #38B583
monochromatic
#581B52 #862A7D #B538A9 #CD5DC2 #DB8CD4

Accessibility & contrast

On white

5.12
#B538A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B538A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538A9
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538A9#FFFFFF#000000##FFFFFF
##B538A91.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AC
Deuteranopia (green-blind)
#5F74A6
Tritanopia (blue-blind)
#BD456C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b538a9;
/* rgb */ color: rgb(181, 56, 169);
/* oklch */ color: oklch(56.4% 0.203 332.0);
Tailwind
colors: {
  custom: {
    50: '#cf79c3',
    500: '#b538a9',
    950: '#000000',
  },
}
SCSS
$custom: #b538a9;
$custom-light: #cf79c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b538a9",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 169
  },
  "hsl": {
    "h": 305.76,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56403,
    "c": 0.20294,
    "h": 332
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B538A9

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

Preview Lab → · Contrast checker → · Palette generator →

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