#B317A6#B317A6

#B317A6 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.7% C 0.230 H 332.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#B317A6
RGBrgb(179, 23, 166)
HSLhsl(305, 77%, 40%)
HSVhsv(305, 87%, 70%)
CMYKcmyk(0%, 87.2%, 7.3%, 29.8%)
CIE-LABlab(42.69, 70.68, -38.64)
CIE-LCHlch(42.69, 80.55, 331.34°)
OKLaboklab(53.68% 0.2035 -0.1065)
OKLCHoklch(53.68% 0.23 332.4)
XYZxyz(25.7799, 12.9520, 37.2112)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317A6 #17B324
analogous
#7217B3 #B317A6 #B31758
triadic
#B317A6 #A6B317 #17A6B3
tetradic
#B317A6 #B37217 #17B324 #1758B3
square
#B317A6 #B37217 #17B324 #1758B3
split-complementary
#B317A6 #58B317 #17B372
monochromatic
#470941 #7D1074 #B317A6 #E324D3 #EA5BDE

Accessibility & contrast

On white

5.85
#B317A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B317A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317A6
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317A6#FFFFFF#000000##FFFFFF
##B317A61.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#536CA3
Tritanopia (blue-blind)
#BB2F63
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b317a6;
/* rgb */ color: rgb(179, 23, 166);
/* oklch */ color: oklch(53.7% 0.230 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce6dc1',
    500: '#b317a6',
    950: '#000000',
  },
}
SCSS
$custom: #b317a6;
$custom-light: #ce6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b317a6",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 166
  },
  "hsl": {
    "h": 305,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.53677,
    "c": 0.22967,
    "h": 332.4
  },
  "luminance": 0.1295
}

Semantic roles & 50–950 ramp

primary
#B317A6
secondary
#58CD62
accent
#F44434
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B317A6

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

Preview Lab → · Contrast checker → · Palette generator →

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