#B317A9#B317A9

#B317A9 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.8% C 0.232 H 331.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#B317A9
RGBrgb(179, 23, 169)
HSLhsl(304, 77%, 40%)
HSVhsv(304, 87%, 70%)
CMYKcmyk(0%, 87.2%, 5.6%, 29.8%)
CIE-LABlab(42.86, 71.12, -40.16)
CIE-LCHlch(42.86, 81.67, 330.54°)
OKLaboklab(53.85% 0.2034 -0.1109)
OKLCHoklch(53.85% 0.232 331.4)
XYZxyz(26.0583, 13.0633, 38.6775)
Luminance0.1306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317A9 #17B321
analogous
#6F17B3 #B317A9 #B3175B
triadic
#B317A9 #A9B317 #17A9B3
tetradic
#B317A9 #B36F17 #17B321 #175BB3
square
#B317A9 #B36F17 #17B321 #175BB3
split-complementary
#B317A9 #5BB317 #17B36F
monochromatic
#470943 #7D1076 #B317A9 #E324D7 #EA5BE1

Accessibility & contrast

On white

5.81
#B317A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B317A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317A9
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317A9#FFFFFF#000000##FFFFFF
##B317A91.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#516CA6
Tritanopia (blue-blind)
#BB3164
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b317a9;
/* rgb */ color: rgb(179, 23, 169);
/* oklch */ color: oklch(53.8% 0.232 331.4);
Tailwind
colors: {
  custom: {
    50: '#ce6dc3',
    500: '#b317a9',
    950: '#000000',
  },
}
SCSS
$custom: #b317a9;
$custom-light: #ce6dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#b317a9",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 169
  },
  "hsl": {
    "h": 303.846,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.5385,
    "c": 0.23169,
    "h": 331.4
  },
  "luminance": 0.13061
}

Semantic roles & 50–950 ramp

primary
#B317A9
secondary
#58CD60
accent
#F44034
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140812
muted
#837B81

Preview Lab

Preview with #B317A9

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

Preview Lab → · Contrast checker → · Palette generator →

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