#B31FA6#B31FA6

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

Color values

HEX#B31FA6
RGBrgb(179, 31, 166)
HSLhsl(305, 70%, 41%)
HSVhsv(305, 83%, 70%)
CMYKcmyk(0%, 82.7%, 7.3%, 29.8%)
CIE-LABlab(43.24, 69.08, -37.77)
CIE-LCHlch(43.24, 78.73, 331.33°)
OKLaboklab(54.07% 0.1988 -0.104)
OKLCHoklch(54.07% 0.224 332.4)
XYZxyz(25.9635, 13.3191, 37.2724)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FA6 #1FB32C
analogous
#761FB3 #B31FA6 #B31F5C
triadic
#B31FA6 #A6B31F #1FA6B3
tetradic
#B31FA6 #B3761F #1FB32C #1F5CB3
square
#B31FA6 #B3761F #1FB32C #1F5CB3
split-complementary
#B31FA6 #5CB31F #1FB376
monochromatic
#4B0D45 #7F1676 #B31FA6 #DC33CD #E568DA

Accessibility & contrast

On white

5.73
#B31FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B31FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31FA6
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31FA6#FFFFFF#000000##FFFFFF
##B31FA61.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F59A9
Deuteranopia (green-blind)
#556DA3
Tritanopia (blue-blind)
#BB3364
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31fa6;
/* rgb */ color: rgb(179, 31, 166);
/* oklch */ color: oklch(54.1% 0.224 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce6fc1',
    500: '#b31fa6',
    950: '#000000',
  },
}
SCSS
$custom: #b31fa6;
$custom-light: #ce6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31fa6",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 305.27,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54067,
    "c": 0.22437,
    "h": 332.4
  },
  "luminance": 0.13317
}

Semantic roles & 50–950 ramp

primary
#B31FA6
secondary
#64CA6D
accent
#ED4A3B
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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