#B538B4#B538B4

#B538B4 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.0% C 0.211 H 328.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B538B4
RGBrgb(181, 56, 180)
HSLhsl(300, 53%, 46%)
HSVhsv(300, 69%, 71%)
CMYKcmyk(0%, 69.1%, 0.6%, 29%)
CIE-LABlab(46.91, 64.32, -40.22)
CIE-LCHlch(46.91, 75.86, 327.98°)
OKLaboklab(57% 0.1798 -0.1113)
OKLCHoklch(57% 0.211 328.3)
XYZxyz(28.7081, 15.9494, 44.7377)
Luminance0.1595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538B4 #38B539
analogous
#7838B5 #B538B4 #B53876
triadic
#B538B4 #B4B538 #38B4B5
tetradic
#B538B4 #B57838 #38B539 #3876B5
square
#B538B4 #B57838 #38B539 #3876B5
split-complementary
#B538B4 #76B538 #38B578
monochromatic
#581B57 #862A86 #B538B4 #CD5DCC #DB8CDB

Accessibility & contrast

On white

5.01
#B538B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B538B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538B4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538B4#FFFFFF#000000##FFFFFF
##B538B41.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2565B8
Deuteranopia (green-blind)
#5975B1
Tritanopia (blue-blind)
#BB4A72
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b538b4;
/* rgb */ color: rgb(181, 56, 180);
/* oklch */ color: oklch(57.0% 0.211 328.3);
Tailwind
colors: {
  custom: {
    50: '#cf7acb',
    500: '#b538b4',
    950: '#000000',
  },
}
SCSS
$custom: #b538b4;
$custom-light: #cf7acb;
$custom-dark: #000000;
JSON
{
  "hex": "#b538b4",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 300.48,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56999,
    "c": 0.21144,
    "h": 328.3
  },
  "luminance": 0.15947
}

Semantic roles & 50–950 ramp

primary
#B538B4
secondary
#83C683
accent
#DC4D4C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B538B4

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

Preview Lab → · Contrast checker → · Palette generator →

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