#B317A4#B317A4

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

Color values

HEX#B317A4
RGBrgb(179, 23, 164)
HSLhsl(306, 77%, 40%)
HSVhsv(306, 87%, 70%)
CMYKcmyk(0%, 87.2%, 8.4%, 29.8%)
CIE-LABlab(42.58, 70.39, -37.62)
CIE-LCHlch(42.58, 79.81, 331.88°)
OKLaboklab(53.56% 0.2035 -0.1035)
OKLCHoklch(53.56% 0.228 333)
XYZxyz(25.5978, 12.8792, 36.2525)
Luminance0.1288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317A4 #17B326
analogous
#7417B3 #B317A4 #B31756
triadic
#B317A4 #A4B317 #17A4B3
tetradic
#B317A4 #B37417 #17B326 #1756B3
square
#B317A4 #B37417 #17B326 #1756B3
split-complementary
#B317A4 #56B317 #17B374
monochromatic
#470941 #7D1072 #B317A4 #E324D1 #EA5BDC

Accessibility & contrast

On white

5.87
#B317A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B317A4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317A4#FFFFFF#000000##FFFFFF
##B317A41.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0557A7
Deuteranopia (green-blind)
#546CA1
Tritanopia (blue-blind)
#BB2E62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b317a4;
/* rgb */ color: rgb(179, 23, 164);
/* oklch */ color: oklch(53.6% 0.228 333.0);
Tailwind
colors: {
  custom: {
    50: '#ce6dbf',
    500: '#b317a4',
    950: '#000000',
  },
}
SCSS
$custom: #b317a4;
$custom-light: #ce6dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#b317a4",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 164
  },
  "hsl": {
    "h": 305.769,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.53563,
    "c": 0.22833,
    "h": 333
  },
  "luminance": 0.12877
}

Semantic roles & 50–950 ramp

primary
#B317A4
secondary
#58CD64
accent
#F44634
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B317A4

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

Preview Lab → · Contrast checker → · Palette generator →

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