#B31FA8#B31FA8

#B31FA8 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.2% C 0.226 H 331.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#B31FA8
RGBrgb(179, 31, 168)
HSLhsl(304, 70%, 41%)
HSVhsv(304, 83%, 70%)
CMYKcmyk(0%, 82.7%, 6.1%, 29.8%)
CIE-LABlab(43.35, 69.37, -38.79)
CIE-LCHlch(43.35, 79.48, 330.79°)
OKLaboklab(54.18% 0.1988 -0.107)
OKLCHoklch(54.18% 0.226 331.7)
XYZxyz(26.1483, 13.3931, 38.2462)
Luminance0.1339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FA8 #1FB32A
analogous
#741FB3 #B31FA8 #B31F5E
triadic
#B31FA8 #A8B31F #1FA8B3
tetradic
#B31FA8 #B3741F #1FB32A #1F5EB3
square
#B31FA8 #B3741F #1FB32A #1F5EB3
split-complementary
#B31FA8 #5EB31F #1FB374
monochromatic
#4B0D46 #7F1677 #B31FA8 #DC33CF #E568DB

Accessibility & contrast

On white

5.71
#B31FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B31FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31FA8
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31FA8#FFFFFF#000000##FFFFFF
##B31FA81.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095AAB
Deuteranopia (green-blind)
#546DA5
Tritanopia (blue-blind)
#BB3565
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31fa8;
/* rgb */ color: rgb(179, 31, 168);
/* oklch */ color: oklch(54.2% 0.226 331.7);
Tailwind
colors: {
  custom: {
    50: '#ce70c2',
    500: '#b31fa8',
    950: '#000000',
  },
}
SCSS
$custom: #b31fa8;
$custom-light: #ce70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b31fa8",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 304.459,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5418,
    "c": 0.22576,
    "h": 331.7
  },
  "luminance": 0.13391
}

Semantic roles & 50–950 ramp

primary
#B31FA8
secondary
#64CA6B
accent
#ED483B
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B31FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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