#B317AB#B317AB

#B317AB is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 54.0% C 0.233 H 330.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B317AB
RGBrgb(179, 23, 171)
HSLhsl(303, 77%, 40%)
HSVhsv(303, 87%, 70%)
CMYKcmyk(0%, 87.2%, 4.5%, 29.8%)
CIE-LABlab(42.97, 71.41, -41.17)
CIE-LCHlch(42.97, 82.43, 330.03°)
OKLaboklab(53.97% 0.2033 -0.1139)
OKLCHoklch(53.97% 0.233 330.8)
XYZxyz(26.2475, 13.1390, 39.6739)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317AB #17B31F
analogous
#6D17B3 #B317AB #B3175D
triadic
#B317AB #ABB317 #17ABB3
tetradic
#B317AB #B36D17 #17B31F #175DB3
square
#B317AB #B36D17 #17B31F #175DB3
split-complementary
#B317AB #5DB317 #17B36D
monochromatic
#470943 #7D1077 #B317AB #E324D9 #EA5BE3

Accessibility & contrast

On white

5.79
#B317AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B317AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317AB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317AB#FFFFFF#000000##FFFFFF
##B317AB1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#506CA8
Tritanopia (blue-blind)
#BA3366
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b317ab;
/* rgb */ color: rgb(179, 23, 171);
/* oklch */ color: oklch(54.0% 0.233 330.8);
Tailwind
colors: {
  custom: {
    50: '#ce6ec4',
    500: '#b317ab',
    950: '#000000',
  },
}
SCSS
$custom: #b317ab;
$custom-light: #ce6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#b317ab",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 171
  },
  "hsl": {
    "h": 303.077,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.53966,
    "c": 0.23305,
    "h": 330.8
  },
  "luminance": 0.13137
}

Semantic roles & 50–950 ramp

primary
#B317AB
secondary
#58CD5E
accent
#F43E34
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B317AB

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

Preview Lab → · Contrast checker → · Palette generator →

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