#B538A2#B538A2

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

Color values

HEX#B538A2
RGBrgb(181, 56, 162)
HSLhsl(309, 53%, 46%)
HSVhsv(309, 69%, 71%)
CMYKcmyk(0%, 69.1%, 10.5%, 29%)
CIE-LABlab(45.99, 61.44, -31.03)
CIE-LCHlch(45.99, 68.83, 333.21°)
OKLaboklab(56.04% 0.1787 -0.0847)
OKLCHoklch(56.04% 0.198 334.6)
XYZxyz(26.9921, 15.2630, 35.6999)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B538A2 #38B54B
analogous
#8A38B5 #B538A2 #B53864
triadic
#B538A2 #A2B538 #38A2B5
tetradic
#B538A2 #B58A38 #38B54B #3864B5
square
#B538A2 #B58A38 #38B54B #3864B5
split-complementary
#B538A2 #64B538 #38B58A
monochromatic
#581B4E #862A78 #B538A2 #CD5DBC #DB8CCF

Accessibility & contrast

On white

5.18
#B538A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B538A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B538A2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B538A2#FFFFFF#000000##FFFFFF
##B538A21.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#62749F
Tritanopia (blue-blind)
#BE4268
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b538a2;
/* rgb */ color: rgb(181, 56, 162);
/* oklch */ color: oklch(56.0% 0.198 334.6);
Tailwind
colors: {
  custom: {
    50: '#cf79be',
    500: '#b538a2',
    950: '#000000',
  },
}
SCSS
$custom: #b538a2;
$custom-light: #cf79be;
$custom-dark: #000000;
JSON
{
  "hex": "#b538a2",
  "rgb": {
    "r": 181,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 309.12,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56042,
    "c": 0.19774,
    "h": 334.6
  },
  "luminance": 0.15261
}

Semantic roles & 50–950 ramp

primary
#B538A2
secondary
#83C68D
accent
#DC624C
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B538A2

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

Preview Lab → · Contrast checker → · Palette generator →

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