#B31DA5#B31DA5

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

Color values

HEX#B31DA5
RGBrgb(179, 29, 165)
HSLhsl(306, 72%, 41%)
HSVhsv(306, 84%, 70%)
CMYKcmyk(0%, 83.8%, 7.8%, 29.8%)
CIE-LABlab(43.04, 69.37, -37.50)
CIE-LCHlch(43.04, 78.85, 331.61°)
OKLaboklab(53.9% 0.2001 -0.1032)
OKLCHoklch(53.9% 0.225 332.7)
XYZxyz(25.8215, 13.1813, 36.7743)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31DA5 #1DB32B
analogous
#761DB3 #B31DA5 #B31D5A
triadic
#B31DA5 #A5B31D #1DA5B3
tetradic
#B31DA5 #B3761D #1DB32B #1D5AB3
square
#B31DA5 #B3761D #1DB32B #1D5AB3
split-complementary
#B31DA5 #5AB31D #1DB376
monochromatic
#4A0C44 #7E1474 #B31DA5 #DD30CD #E664DA

Accessibility & contrast

On white

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

On black

3.64
#B31DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B31DA5#FFFFFF#000000##FFFFFF
##B31DA51.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E58A8
Deuteranopia (green-blind)
#556DA2
Tritanopia (blue-blind)
#BB3263
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31da5;
/* rgb */ color: rgb(179, 29, 165);
/* oklch */ color: oklch(53.9% 0.225 332.7);
Tailwind
colors: {
  custom: {
    50: '#ce6fc0',
    500: '#b31da5',
    950: '#000000',
  },
}
SCSS
$custom: #b31da5;
$custom-light: #ce6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#b31da5",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 165
  },
  "hsl": {
    "h": 305.6,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53904,
    "c": 0.22514,
    "h": 332.7
  },
  "luminance": 0.13179
}

Semantic roles & 50–950 ramp

primary
#B31DA5
secondary
#61CB6B
accent
#EF4A39
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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