#B317AC#B317AC

#B317AC is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.234 H 330.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#B317AC
RGBrgb(179, 23, 172)
HSLhsl(303, 77%, 40%)
HSVhsv(303, 87%, 70%)
CMYKcmyk(0%, 87.2%, 3.9%, 29.8%)
CIE-LABlab(43.03, 71.56, -41.68)
CIE-LCHlch(43.03, 82.81, 329.78°)
OKLaboklab(54.03% 0.2033 -0.1153)
OKLCHoklch(54.03% 0.234 330.4)
XYZxyz(26.3431, 13.1773, 40.1778)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317AC #17B31E
analogous
#6C17B3 #B317AC #B3175E
triadic
#B317AC #ACB317 #17ACB3
tetradic
#B317AC #B36C17 #17B31E #175EB3
square
#B317AC #B36C17 #17B31E #175EB3
split-complementary
#B317AC #5EB317 #17B36C
monochromatic
#470944 #7D1078 #B317AC #E324DA #EA5BE3

Accessibility & contrast

On white

5.78
#B317AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B317AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317AC
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317AC#FFFFFF#000000##FFFFFF
##B317AC1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B0
Deuteranopia (green-blind)
#4F6DA9
Tritanopia (blue-blind)
#BA3366
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b317ac;
/* rgb */ color: rgb(179, 23, 172);
/* oklch */ color: oklch(54.0% 0.234 330.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ec5',
    500: '#b317ac',
    950: '#000000',
  },
}
SCSS
$custom: #b317ac;
$custom-light: #ce6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#b317ac",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 172
  },
  "hsl": {
    "h": 302.692,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.54025,
    "c": 0.23372,
    "h": 330.4
  },
  "luminance": 0.13175
}

Semantic roles & 50–950 ramp

primary
#B317AC
secondary
#58CD5E
accent
#F43D34
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B317AC

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

Preview Lab → · Contrast checker → · Palette generator →

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