#B31DA7#B31DA7

#B31DA7 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.227 H 332.0°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#B31DA7
RGBrgb(179, 29, 167)
HSLhsl(305, 72%, 41%)
HSVhsv(305, 84%, 70%)
CMYKcmyk(0%, 83.8%, 6.7%, 29.8%)
CIE-LABlab(43.14, 69.66, -38.52)
CIE-LCHlch(43.14, 79.60, 331.06°)
OKLaboklab(54.02% 0.2001 -0.1062)
OKLCHoklch(54.02% 0.227 332)
XYZxyz(26.0049, 13.2547, 37.7405)
Luminance0.1325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31DA7 #1DB329
analogous
#741DB3 #B31DA7 #B31D5C
triadic
#B31DA7 #A7B31D #1DA7B3
tetradic
#B31DA7 #B3741D #1DB329 #1D5CB3
square
#B31DA7 #B3741D #1DB329 #1D5CB3
split-complementary
#B31DA7 #5CB31D #1DB374
monochromatic
#4A0C45 #7E1476 #B31DA7 #DD30D0 #E664DC

Accessibility & contrast

On white

5.75
#B31DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#B31DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31DA7
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31DA7#FFFFFF#000000##FFFFFF
##B31DA71.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0859AA
Deuteranopia (green-blind)
#546DA4
Tritanopia (blue-blind)
#BB3364
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31da7;
/* rgb */ color: rgb(179, 29, 167);
/* oklch */ color: oklch(54.0% 0.227 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce6fc1',
    500: '#b31da7',
    950: '#000000',
  },
}
SCSS
$custom: #b31da7;
$custom-light: #ce6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31da7",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 304.8,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54017,
    "c": 0.2265,
    "h": 332
  },
  "luminance": 0.13252
}

Semantic roles & 50–950 ramp

primary
#B31DA7
secondary
#61CB69
accent
#EF4839
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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