#B31BA6#B31BA6

#B31BA6 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.9% C 0.227 H 332.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B31BA6
RGBrgb(179, 27, 166)
HSLhsl(305, 74%, 40%)
HSVhsv(305, 85%, 70%)
CMYKcmyk(0%, 84.9%, 7.3%, 29.8%)
CIE-LABlab(42.95, 69.93, -38.23)
CIE-LCHlch(42.95, 79.70, 331.33°)
OKLaboklab(53.86% 0.2013 -0.1053)
OKLCHoklch(53.86% 0.227 332.4)
XYZxyz(25.8654, 13.1230, 37.2397)
Luminance0.1312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31BA6 #1BB328
analogous
#741BB3 #B31BA6 #B31B5A
triadic
#B31BA6 #A6B31B #1BA6B3
tetradic
#B31BA6 #B3741B #1BB328 #1B5AB3
square
#B31BA6 #B3741B #1BB328 #1B5AB3
split-complementary
#B31BA6 #5AB31B #1BB374
monochromatic
#490B43 #7E1375 #B31BA6 #DF2CD0 #E761DC

Accessibility & contrast

On white

5.79
#B31BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B31BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31BA6
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31BA6#FFFFFF#000000##FFFFFF
##B31BA61.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0758A9
Deuteranopia (green-blind)
#546DA3
Tritanopia (blue-blind)
#BB3163
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31ba6;
/* rgb */ color: rgb(179, 27, 166);
/* oklch */ color: oklch(53.9% 0.227 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ec1',
    500: '#b31ba6',
    950: '#000000',
  },
}
SCSS
$custom: #b31ba6;
$custom-light: #ce6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ba6",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 305.132,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.53859,
    "c": 0.22718,
    "h": 332.4
  },
  "luminance": 0.13121
}

Semantic roles & 50–950 ramp

primary
#B31BA6
secondary
#5ECC67
accent
#F04737
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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