#B317A5#B317A5

#B317A5 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.6% C 0.229 H 332.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B317A5
RGBrgb(179, 23, 165)
HSLhsl(305, 77%, 40%)
HSVhsv(305, 87%, 70%)
CMYKcmyk(0%, 87.2%, 7.8%, 29.8%)
CIE-LABlab(42.64, 70.53, -38.13)
CIE-LCHlch(42.64, 80.18, 331.61°)
OKLaboklab(53.62% 0.2035 -0.105)
OKLCHoklch(53.62% 0.229 332.7)
XYZxyz(25.6885, 12.9154, 36.7300)
Luminance0.1291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317A5 #17B325
analogous
#7317B3 #B317A5 #B31757
triadic
#B317A5 #A5B317 #17A5B3
tetradic
#B317A5 #B37317 #17B325 #1757B3
square
#B317A5 #B37317 #17B325 #1757B3
split-complementary
#B317A5 #57B317 #17B373
monochromatic
#470941 #7D1073 #B317A5 #E324D2 #EA5BDD

Accessibility & contrast

On white

5.86
#B317A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#B317A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317A5
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317A5#FFFFFF#000000##FFFFFF
##B317A51.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0257A8
Deuteranopia (green-blind)
#536CA2
Tritanopia (blue-blind)
#BB2F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b317a5;
/* rgb */ color: rgb(179, 23, 165);
/* oklch */ color: oklch(53.6% 0.229 332.7);
Tailwind
colors: {
  custom: {
    50: '#ce6dc0',
    500: '#b317a5',
    950: '#000000',
  },
}
SCSS
$custom: #b317a5;
$custom-light: #ce6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#b317a5",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 165
  },
  "hsl": {
    "h": 305.385,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.5362,
    "c": 0.229,
    "h": 332.7
  },
  "luminance": 0.12913
}

Semantic roles & 50–950 ramp

primary
#B317A5
secondary
#58CD63
accent
#F44534
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B317A5

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

Preview Lab → · Contrast checker → · Palette generator →

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