#B31AAB#B31AAB

#B31AAB is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.1% C 0.231 H 330.7°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#B31AAB
RGBrgb(179, 26, 171)
HSLhsl(303, 75%, 40%)
HSVhsv(303, 85%, 70%)
CMYKcmyk(0%, 85.5%, 4.5%, 29.8%)
CIE-LABlab(43.16, 70.86, -40.87)
CIE-LCHlch(43.16, 81.81, 330.02°)
OKLaboklab(54.1% 0.2018 -0.113)
OKLCHoklch(54.1% 0.231 330.7)
XYZxyz(26.3105, 13.2650, 39.6949)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AAB #1AB322
analogous
#6E1AB3 #B31AAB #B31A5F
triadic
#B31AAB #ABB31A #1AABB3
tetradic
#B31AAB #B36E1A #1AB322 #1A5FB3
square
#B31AAB #B36E1A #1AB322 #1A5FB3
split-complementary
#B31AAB #5FB31A #1AB36E
monochromatic
#480A45 #7E1278 #B31AAB #E02AD7 #E860E1

Accessibility & contrast

On white

5.75
#B31AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#B31AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AAB
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AAB#FFFFFF#000000##FFFFFF
##B31AAB1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#516DA8
Tritanopia (blue-blind)
#BA3466
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31aab;
/* rgb */ color: rgb(179, 26, 171);
/* oklch */ color: oklch(54.1% 0.231 330.7);
Tailwind
colors: {
  custom: {
    50: '#ce6ec4',
    500: '#b31aab',
    950: '#000000',
  },
}
SCSS
$custom: #b31aab;
$custom-light: #ce6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aab",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 171
  },
  "hsl": {
    "h": 303.137,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.54099,
    "c": 0.23125,
    "h": 330.7
  },
  "luminance": 0.13263
}

Semantic roles & 50–950 ramp

primary
#B31AAB
secondary
#5DCC63
accent
#F14037
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B31AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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