#B31FA9#B31FA9

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

Color values

HEX#B31FA9
RGBrgb(179, 31, 169)
HSLhsl(304, 70%, 41%)
HSVhsv(304, 83%, 70%)
CMYKcmyk(0%, 82.7%, 5.6%, 29.8%)
CIE-LABlab(43.40, 69.52, -39.30)
CIE-LCHlch(43.40, 79.86, 330.52°)
OKLaboklab(54.24% 0.1988 -0.1084)
OKLCHoklch(54.24% 0.226 331.4)
XYZxyz(26.2419, 13.4305, 38.7387)
Luminance0.1343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FA9 #1FB329
analogous
#731FB3 #B31FA9 #B31F5F
triadic
#B31FA9 #A9B31F #1FA9B3
tetradic
#B31FA9 #B3731F #1FB329 #1F5FB3
square
#B31FA9 #B3731F #1FB329 #1F5FB3
split-complementary
#B31FA9 #5FB31F #1FB373
monochromatic
#4B0D46 #7F1678 #B31FA9 #DC33D0 #E568DC

Accessibility & contrast

On white

5.70
#B31FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B31FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31FA9
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31FA9#FFFFFF#000000##FFFFFF
##B31FA91.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065AAC
Deuteranopia (green-blind)
#536DA6
Tritanopia (blue-blind)
#BB3566
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31fa9;
/* rgb */ color: rgb(179, 31, 169);
/* oklch */ color: oklch(54.2% 0.226 331.4);
Tailwind
colors: {
  custom: {
    50: '#ce70c3',
    500: '#b31fa9',
    950: '#000000',
  },
}
SCSS
$custom: #b31fa9;
$custom-light: #ce70c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b31fa9",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 304.054,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54237,
    "c": 0.22645,
    "h": 331.4
  },
  "luminance": 0.13428
}

Semantic roles & 50–950 ramp

primary
#B31FA9
secondary
#64CA6A
accent
#ED473B
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B31FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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