#B317A0#B317A0

#B317A0 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.3% C 0.226 H 334.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#B317A0
RGBrgb(179, 23, 160)
HSLhsl(307, 77%, 40%)
HSVhsv(307, 87%, 70%)
CMYKcmyk(0%, 87.2%, 10.6%, 29.8%)
CIE-LABlab(42.36, 69.82, -35.56)
CIE-LCHlch(42.36, 78.36, 333.01°)
OKLaboklab(53.34% 0.2035 -0.0976)
OKLCHoklch(53.34% 0.226 334.4)
XYZxyz(25.2423, 12.7369, 34.3800)
Luminance0.1273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317A0 #17B32A
analogous
#7817B3 #B317A0 #B31752
triadic
#B317A0 #A0B317 #17A0B3
tetradic
#B317A0 #B37817 #17B32A #1752B3
square
#B317A0 #B37817 #17B32A #1752B3
split-complementary
#B317A0 #52B317 #17B378
monochromatic
#47093F #7D1070 #B317A0 #E324CC #EA5BD8

Accessibility & contrast

On white

5.92
#B317A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B317A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317A0
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317A0#FFFFFF#000000##FFFFFF
##B317A01.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1156A3
Deuteranopia (green-blind)
#566C9D
Tritanopia (blue-blind)
#BC2B5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b317a0;
/* rgb */ color: rgb(179, 23, 160);
/* oklch */ color: oklch(53.3% 0.226 334.4);
Tailwind
colors: {
  custom: {
    50: '#ce6dbc',
    500: '#b317a0',
    950: '#000000',
  },
}
SCSS
$custom: #b317a0;
$custom-light: #ce6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b317a0",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 307.308,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.53339,
    "c": 0.22569,
    "h": 334.4
  },
  "luminance": 0.12735
}

Semantic roles & 50–950 ramp

primary
#B317A0
secondary
#58CD67
accent
#F44B34
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B317A0

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

Preview Lab → · Contrast checker → · Palette generator →

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