#B317AD#B317AD

#B317AD is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.1% C 0.234 H 330.1°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#B317AD
RGBrgb(179, 23, 173)
HSLhsl(302, 77%, 40%)
HSVhsv(302, 87%, 70%)
CMYKcmyk(0%, 87.2%, 3.4%, 29.8%)
CIE-LABlab(43.09, 71.71, -42.18)
CIE-LCHlch(43.09, 83.20, 329.54°)
OKLaboklab(54.08% 0.2032 -0.1168)
OKLCHoklch(54.08% 0.234 330.1)
XYZxyz(26.4395, 13.2158, 40.6855)
Luminance0.1321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317AD #17B31D
analogous
#6B17B3 #B317AD #B3175F
triadic
#B317AD #ADB317 #17ADB3
tetradic
#B317AD #B36B17 #17B31D #175FB3
square
#B317AD #B36B17 #17B31D #175FB3
split-complementary
#B317AD #5FB317 #17B36B
monochromatic
#470944 #7D1079 #B317AD #E324DC #EA5BE4

Accessibility & contrast

On white

5.76
#B317AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B317AD
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317AD#FFFFFF#000000##FFFFFF
##B317AD1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#4F6DAA
Tritanopia (blue-blind)
#BA3467
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b317ad;
/* rgb */ color: rgb(179, 23, 173);
/* oklch */ color: oklch(54.1% 0.234 330.1);
Tailwind
colors: {
  custom: {
    50: '#ce6ec6',
    500: '#b317ad',
    950: '#000000',
  },
}
SCSS
$custom: #b317ad;
$custom-light: #ce6ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#b317ad",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 173
  },
  "hsl": {
    "h": 302.308,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.54084,
    "c": 0.23442,
    "h": 330.1
  },
  "luminance": 0.13214
}

Semantic roles & 50–950 ramp

primary
#B317AD
secondary
#58CD5D
accent
#F43B34
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B317AD

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

Preview Lab → · Contrast checker → · Palette generator →

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