#B538A6#B538A6

#B538A6 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.2% C 0.201 H 333.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#B538A6
RGBrgb(181, 56, 166)
HSLhsl(307, 53%, 46%)
HSVhsv(307, 69%, 71%)
CMYKcmyk(0%, 69.1%, 8.3%, 29%)
CIE-LABlab(46.19, 62.06, -33.10)
CIE-LCHlch(46.19, 70.34, 331.93°)
OKLaboklab(56.25% 0.179 -0.0907)
OKLCHoklch(56.25% 0.201 333.1)
XYZxyz(27.3533, 15.4075, 37.6023)
Luminance0.1540 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538A6 #38B547
analogous
#8638B5 #B538A6 #B53868
triadic
#B538A6 #A6B538 #38A6B5
tetradic
#B538A6 #B58638 #38B547 #3868B5
square
#B538A6 #B58638 #38B547 #3868B5
split-complementary
#B538A6 #68B538 #38B586
monochromatic
#581B50 #862A7B #B538A6 #CD5DC0 #DB8CD2

Accessibility & contrast

On white

5.15
#B538A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#B538A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538A6
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538A6#FFFFFF#000000##FFFFFF
##B538A61.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#6074A3
Tritanopia (blue-blind)
#BD436A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b538a6;
/* rgb */ color: rgb(181, 56, 166);
/* oklch */ color: oklch(56.2% 0.201 333.1);
Tailwind
colors: {
  custom: {
    50: '#cf79c1',
    500: '#b538a6',
    950: '#000000',
  },
}
SCSS
$custom: #b538a6;
$custom-light: #cf79c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b538a6",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 166
  },
  "hsl": {
    "h": 307.2,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56246,
    "c": 0.20069,
    "h": 333.1
  },
  "luminance": 0.15405
}

Semantic roles & 50–950 ramp

primary
#B538A6
secondary
#83C68B
accent
#DC5D4C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B538A6

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

Preview Lab → · Contrast checker → · Palette generator →

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