#B538A7#B538A7

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

Color values

HEX#B538A7
RGBrgb(181, 56, 167)
HSLhsl(307, 53%, 46%)
HSVhsv(307, 69%, 71%)
CMYKcmyk(0%, 69.1%, 7.7%, 29%)
CIE-LABlab(46.24, 62.22, -33.61)
CIE-LCHlch(46.24, 70.72, 331.62°)
OKLaboklab(56.3% 0.1791 -0.0922)
OKLCHoklch(56.3% 0.201 332.8)
XYZxyz(27.4454, 15.4443, 38.0873)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538A7 #38B546
analogous
#8538B5 #B538A7 #B53869
triadic
#B538A7 #A7B538 #38A7B5
tetradic
#B538A7 #B58538 #38B546 #3869B5
square
#B538A7 #B58538 #38B546 #3869B5
split-complementary
#B538A7 #69B538 #38B585
monochromatic
#581B51 #862A7C #B538A7 #CD5DC0 #DB8CD3

Accessibility & contrast

On white

5.14
#B538A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#B538A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538A7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538A7#FFFFFF#000000##FFFFFF
##B538A71.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362AA
Deuteranopia (green-blind)
#5F74A4
Tritanopia (blue-blind)
#BD446B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b538a7;
/* rgb */ color: rgb(181, 56, 167);
/* oklch */ color: oklch(56.3% 0.201 332.8);
Tailwind
colors: {
  custom: {
    50: '#cf79c1',
    500: '#b538a7',
    950: '#000000',
  },
}
SCSS
$custom: #b538a7;
$custom-light: #cf79c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b538a7",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 167
  },
  "hsl": {
    "h": 306.72,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56298,
    "c": 0.20144,
    "h": 332.8
  },
  "luminance": 0.15442
}

Semantic roles & 50–950 ramp

primary
#B538A7
secondary
#83C68A
accent
#DC5C4C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B538A7

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

Preview Lab → · Contrast checker → · Palette generator →

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