#B538A3#B538A3

#B538A3 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.1% C 0.198 H 334.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B538A3
RGBrgb(181, 56, 163)
HSLhsl(309, 53%, 46%)
HSVhsv(309, 69%, 71%)
CMYKcmyk(0%, 69.1%, 9.9%, 29%)
CIE-LABlab(46.04, 61.60, -31.55)
CIE-LCHlch(46.04, 69.21, 332.88°)
OKLaboklab(56.09% 0.1788 -0.0862)
OKLCHoklch(56.09% 0.198 334.2)
XYZxyz(27.0813, 15.2987, 36.1699)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538A3 #38B54A
analogous
#8938B5 #B538A3 #B53865
triadic
#B538A3 #A3B538 #38A3B5
tetradic
#B538A3 #B58938 #38B54A #3865B5
square
#B538A3 #B58938 #38B54A #3865B5
split-complementary
#B538A3 #65B538 #38B589
monochromatic
#581B4F #862A79 #B538A3 #CD5DBD #DB8CD0

Accessibility & contrast

On white

5.17
#B538A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B538A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538A3
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538A3#FFFFFF#000000##FFFFFF
##B538A31.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A6
Deuteranopia (green-blind)
#6174A0
Tritanopia (blue-blind)
#BD4269
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b538a3;
/* rgb */ color: rgb(181, 56, 163);
/* oklch */ color: oklch(56.1% 0.198 334.2);
Tailwind
colors: {
  custom: {
    50: '#cf79be',
    500: '#b538a3',
    950: '#000000',
  },
}
SCSS
$custom: #b538a3;
$custom-light: #cf79be;
$custom-dark: #000000;
JSON
{
  "hex": "#b538a3",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 163
  },
  "hsl": {
    "h": 308.64,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56092,
    "c": 0.19847,
    "h": 334.2
  },
  "luminance": 0.15296
}

Semantic roles & 50–950 ramp

primary
#B538A3
secondary
#83C68D
accent
#DC604C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B538A3

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

Preview Lab → · Contrast checker → · Palette generator →

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