#B31BAE#B31BAE

#B31BAE is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.3% C 0.233 H 329.8°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#B31BAE
RGBrgb(179, 27, 174)
HSLhsl(302, 74%, 40%)
HSVhsv(302, 85%, 70%)
CMYKcmyk(0%, 84.9%, 2.8%, 29.8%)
CIE-LABlab(43.40, 71.12, -42.28)
CIE-LCHlch(43.40, 82.74, 329.27°)
OKLaboklab(54.32% 0.2011 -0.1171)
OKLCHoklch(54.32% 0.233 329.8)
XYZxyz(26.6222, 13.4257, 41.2255)
Luminance0.1342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31BAE #1BB320
analogous
#6C1BB3 #B31BAE #B31B62
triadic
#B31BAE #AEB31B #1BAEB3
tetradic
#B31BAE #B36C1B #1BB320 #1B62B3
square
#B31BAE #B36C1B #1BB320 #1B62B3
split-complementary
#B31BAE #62B31B #1BB36C
monochromatic
#490B47 #7E137A #B31BAE #DF2CD9 #E761E3

Accessibility & contrast

On white

5.70
#B31BAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B31BAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31BAE
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31BAE#FFFFFF#000000##FFFFFF
##B31BAE1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31bae;
/* rgb */ color: rgb(179, 27, 174);
/* oklch */ color: oklch(54.3% 0.233 329.8);
Tailwind
colors: {
  custom: {
    50: '#ce6fc7',
    500: '#b31bae',
    950: '#000000',
  },
}
SCSS
$custom: #b31bae;
$custom-light: #ce6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#b31bae",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 174
  },
  "hsl": {
    "h": 301.974,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.54323,
    "c": 0.23268,
    "h": 329.8
  },
  "luminance": 0.13424
}

Semantic roles & 50–950 ramp

primary
#B31BAE
secondary
#5ECC62
accent
#F03D37
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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