#B31FAF#B31FAF

#B31FAF is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.6% C 0.231 H 329.4°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#B31FAF
RGBrgb(179, 31, 175)
HSLhsl(302, 70%, 41%)
HSVhsv(302, 83%, 70%)
CMYKcmyk(0%, 82.7%, 2.2%, 29.8%)
CIE-LABlab(43.74, 70.43, -42.32)
CIE-LCHlch(43.74, 82.17, 329.00°)
OKLaboklab(54.59% 0.1986 -0.1172)
OKLCHoklch(54.59% 0.231 329.4)
XYZxyz(26.8181, 13.6610, 41.7735)
Luminance0.1366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FAF #1FB323
analogous
#6D1FB3 #B31FAF #B31F65
triadic
#B31FAF #AFB31F #1FAFB3
tetradic
#B31FAF #B36D1F #1FB323 #1F65B3
square
#B31FAF #B36D1F #1FB323 #1F65B3
split-complementary
#B31FAF #65B31F #1FB36D
monochromatic
#4B0D49 #7F167C #B31FAF #DC33D7 #E568E1

Accessibility & contrast

On white

5.63
#B31FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#B31FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31FAF
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31FAF#FFFFFF#000000##FFFFFF
##B31FAF1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#506EAC
Tritanopia (blue-blind)
#BA3969
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31faf;
/* rgb */ color: rgb(179, 31, 175);
/* oklch */ color: oklch(54.6% 0.231 329.4);
Tailwind
colors: {
  custom: {
    50: '#ce70c7',
    500: '#b31faf',
    950: '#000000',
  },
}
SCSS
$custom: #b31faf;
$custom-light: #ce70c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b31faf",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 175
  },
  "hsl": {
    "h": 301.622,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54586,
    "c": 0.23065,
    "h": 329.4
  },
  "luminance": 0.13659
}

Semantic roles & 50–950 ramp

primary
#B31FAF
secondary
#64CA66
accent
#ED3F3B
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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