#B317A1#B317A1

#B317A1 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.226 H 334.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#B317A1
RGBrgb(179, 23, 161)
HSLhsl(307, 77%, 40%)
HSVhsv(307, 87%, 70%)
CMYKcmyk(0%, 87.2%, 10.1%, 29.8%)
CIE-LABlab(42.42, 69.96, -36.08)
CIE-LCHlch(42.42, 78.72, 332.72°)
OKLaboklab(53.4% 0.2035 -0.0991)
OKLCHoklch(53.4% 0.226 334)
XYZxyz(25.3301, 12.7721, 34.8425)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317A1 #17B329
analogous
#7717B3 #B317A1 #B31753
triadic
#B317A1 #A1B317 #17A1B3
tetradic
#B317A1 #B37717 #17B329 #1753B3
square
#B317A1 #B37717 #17B329 #1753B3
split-complementary
#B317A1 #53B317 #17B377
monochromatic
#47093F #7D1070 #B317A1 #E324CD #EA5BD9

Accessibility & contrast

On white

5.91
#B317A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B317A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317A1
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317A1#FFFFFF#000000##FFFFFF
##B317A11.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F56A4
Deuteranopia (green-blind)
#556C9E
Tritanopia (blue-blind)
#BC2C60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b317a1;
/* rgb */ color: rgb(179, 23, 161);
/* oklch */ color: oklch(53.4% 0.226 334.0);
Tailwind
colors: {
  custom: {
    50: '#ce6dbd',
    500: '#b317a1',
    950: '#000000',
  },
}
SCSS
$custom: #b317a1;
$custom-light: #ce6dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#b317a1",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 306.923,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.53395,
    "c": 0.22635,
    "h": 334
  },
  "luminance": 0.1277
}

Semantic roles & 50–950 ramp

primary
#B317A1
secondary
#58CD66
accent
#F44A34
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B317A1

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

Preview Lab → · Contrast checker → · Palette generator →

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