#B31AB2#B31AB2

#B31AB2 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.5% C 0.236 H 328.5°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#B31AB2
RGBrgb(179, 26, 178)
HSLhsl(300, 75%, 40%)
HSVhsv(300, 85%, 70%)
CMYKcmyk(0%, 85.5%, 0.6%, 29.8%)
CIE-LABlab(43.56, 71.92, -44.38)
CIE-LCHlch(43.56, 84.51, 328.32°)
OKLaboklab(54.52% 0.2014 -0.1232)
OKLCHoklch(54.52% 0.236 328.5)
XYZxyz(26.9954, 13.5390, 43.3023)
Luminance0.1354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AB2 #1AB31B
analogous
#671AB3 #B31AB2 #B31A66
triadic
#B31AB2 #B2B31A #1AB2B3
tetradic
#B31AB2 #B3671A #1AB31B #1A66B3
square
#B31AB2 #B3671A #1AB31B #1A66B3
split-complementary
#B31AB2 #66B31A #1AB367
monochromatic
#480A48 #7E127D #B31AB2 #E02ADF #E860E7

Accessibility & contrast

On white

5.66
#B31AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#B31AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AB2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AB2#FFFFFF#000000##FFFFFF
##B31AB21.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#4C6DAF
Tritanopia (blue-blind)
#B9386A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31ab2;
/* rgb */ color: rgb(179, 26, 178);
/* oklch */ color: oklch(54.5% 0.236 328.5);
Tailwind
colors: {
  custom: {
    50: '#ce6fca',
    500: '#b31ab2',
    950: '#000000',
  },
}
SCSS
$custom: #b31ab2;
$custom-light: #ce6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ab2",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 178
  },
  "hsl": {
    "h": 300.392,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.54516,
    "c": 0.23609,
    "h": 328.5
  },
  "luminance": 0.13537
}

Semantic roles & 50–950 ramp

primary
#B31AB2
secondary
#5DCC5D
accent
#F13837
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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