#B31BA7#B31BA7

#B31BA7 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.9% C 0.228 H 332.0°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#B31BA7
RGBrgb(179, 27, 167)
HSLhsl(305, 74%, 40%)
HSVhsv(305, 85%, 70%)
CMYKcmyk(0%, 84.9%, 6.7%, 29.8%)
CIE-LABlab(43.00, 70.07, -38.74)
CIE-LCHlch(43.00, 80.07, 331.06°)
OKLaboklab(53.92% 0.2013 -0.1068)
OKLCHoklch(53.92% 0.228 332)
XYZxyz(25.9575, 13.1599, 37.7247)
Luminance0.1316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31BA7 #1BB327
analogous
#731BB3 #B31BA7 #B31B5B
triadic
#B31BA7 #A7B31B #1BA7B3
tetradic
#B31BA7 #B3731B #1BB327 #1B5BB3
square
#B31BA7 #B3731B #1BB327 #1B5BB3
split-complementary
#B31BA7 #5BB31B #1BB373
monochromatic
#490B44 #7E1375 #B31BA7 #DF2CD1 #E761DD

Accessibility & contrast

On white

5.78
#B31BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B31BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31BA7
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31BA7#FFFFFF#000000##FFFFFF
##B31BA71.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0358AA
Deuteranopia (green-blind)
#536DA4
Tritanopia (blue-blind)
#BB3264
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31ba7;
/* rgb */ color: rgb(179, 27, 167);
/* oklch */ color: oklch(53.9% 0.228 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce6ec1',
    500: '#b31ba7',
    950: '#000000',
  },
}
SCSS
$custom: #b31ba7;
$custom-light: #ce6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ba7",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 304.737,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.53916,
    "c": 0.22786,
    "h": 332
  },
  "luminance": 0.13158
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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