#B317A7#B317A7

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

Color values

HEX#B317A7
RGBrgb(179, 23, 167)
HSLhsl(305, 77%, 40%)
HSVhsv(305, 87%, 70%)
CMYKcmyk(0%, 87.2%, 6.7%, 29.8%)
CIE-LABlab(42.75, 70.82, -39.15)
CIE-LCHlch(42.75, 80.92, 331.07°)
OKLaboklab(53.73% 0.2035 -0.108)
OKLCHoklch(53.73% 0.23 332)
XYZxyz(25.8720, 12.9888, 37.6962)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317A7 #17B323
analogous
#7117B3 #B317A7 #B31759
triadic
#B317A7 #A7B317 #17A7B3
tetradic
#B317A7 #B37117 #17B323 #1759B3
square
#B317A7 #B37117 #17B323 #1759B3
split-complementary
#B317A7 #59B317 #17B371
monochromatic
#470942 #7D1074 #B317A7 #E324D4 #EA5BDF

Accessibility & contrast

On white

5.84
#B317A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#B317A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317A7
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317A7#FFFFFF#000000##FFFFFF
##B317A71.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#BB3063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b317a7;
/* rgb */ color: rgb(179, 23, 167);
/* oklch */ color: oklch(53.7% 0.230 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce6dc1',
    500: '#b317a7',
    950: '#000000',
  },
}
SCSS
$custom: #b317a7;
$custom-light: #ce6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b317a7",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 167
  },
  "hsl": {
    "h": 304.615,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.53734,
    "c": 0.23034,
    "h": 332
  },
  "luminance": 0.12987
}

Semantic roles & 50–950 ramp

primary
#B317A7
secondary
#58CD61
accent
#F44334
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B317A7

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

Preview Lab → · Contrast checker → · Palette generator →

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