#B31CAE#B31CAE

#B31CAE is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.4% C 0.232 H 329.8°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#B31CAE
RGBrgb(179, 28, 174)
HSLhsl(302, 73%, 41%)
HSVhsv(302, 84%, 70%)
CMYKcmyk(0%, 84.4%, 2.8%, 29.8%)
CIE-LABlab(43.47, 70.92, -42.17)
CIE-LCHlch(43.47, 82.51, 329.26°)
OKLaboklab(54.37% 0.2005 -0.1168)
OKLCHoklch(54.37% 0.232 329.8)
XYZxyz(26.6455, 13.4724, 41.2333)
Luminance0.1347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CAE #1CB321
analogous
#6C1CB3 #B31CAE #B31C62
triadic
#B31CAE #AEB31C #1CAEB3
tetradic
#B31CAE #B36C1C #1CB321 #1C62B3
square
#B31CAE #B36C1C #1CB321 #1C62B3
split-complementary
#B31CAE #62B31C #1CB36C
monochromatic
#490B47 #7E147B #B31CAE #DE2ED8 #E763E2

Accessibility & contrast

On white

5.68
#B31CAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B31CAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CAE
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CAE#FFFFFF#000000##FFFFFF
##B31CAE1.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#4F6DAB
Tritanopia (blue-blind)
#BA3768
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31cae;
/* rgb */ color: rgb(179, 28, 174);
/* oklch */ color: oklch(54.4% 0.232 329.8);
Tailwind
colors: {
  custom: {
    50: '#ce6fc7',
    500: '#b31cae',
    950: '#000000',
  },
}
SCSS
$custom: #b31cae;
$custom-light: #ce6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#b31cae",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 174
  },
  "hsl": {
    "h": 301.987,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54372,
    "c": 0.23203,
    "h": 329.8
  },
  "luminance": 0.1347
}

Semantic roles & 50–950 ramp

primary
#B31CAE
secondary
#5FCB63
accent
#F03E38
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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