#B317AF#B317AF

#B317AF is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.2% C 0.236 H 329.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B317AF
RGBrgb(179, 23, 175)
HSLhsl(302, 77%, 40%)
HSVhsv(302, 87%, 70%)
CMYKcmyk(0%, 87.2%, 2.2%, 29.8%)
CIE-LABlab(43.20, 72.01, -43.18)
CIE-LCHlch(43.20, 83.97, 329.05°)
OKLaboklab(54.2% 0.2031 -0.1197)
OKLCHoklch(54.2% 0.236 329.5)
XYZxyz(26.6345, 13.2938, 41.7123)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317AF #17B31B
analogous
#6917B3 #B317AF #B31761
triadic
#B317AF #AFB317 #17AFB3
tetradic
#B317AF #B36917 #17B31B #1761B3
square
#B317AF #B36917 #17B31B #1761B3
split-complementary
#B317AF #61B317 #17B369
monochromatic
#470945 #7D107A #B317AF #E324DE #EA5BE6

Accessibility & contrast

On white

5.74
#B317AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B317AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317AF
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317AF#FFFFFF#000000##FFFFFF
##B317AF1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B3
Deuteranopia (green-blind)
#4E6DAC
Tritanopia (blue-blind)
#BA3568
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b317af;
/* rgb */ color: rgb(179, 23, 175);
/* oklch */ color: oklch(54.2% 0.236 329.5);
Tailwind
colors: {
  custom: {
    50: '#ce6ec7',
    500: '#b317af',
    950: '#000000',
  },
}
SCSS
$custom: #b317af;
$custom-light: #ce6ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#b317af",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 175
  },
  "hsl": {
    "h": 301.538,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.54204,
    "c": 0.23578,
    "h": 329.5
  },
  "luminance": 0.13292
}

Semantic roles & 50–950 ramp

primary
#B317AF
secondary
#58CD5B
accent
#F43934
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B317AF

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

Preview Lab → · Contrast checker → · Palette generator →

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