#B317A3#B317A3

#B317A3 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.5% C 0.228 H 333.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#B317A3
RGBrgb(179, 23, 163)
HSLhsl(306, 77%, 40%)
HSVhsv(306, 87%, 70%)
CMYKcmyk(0%, 87.2%, 8.9%, 29.8%)
CIE-LABlab(42.53, 70.25, -37.11)
CIE-LCHlch(42.53, 79.44, 332.16°)
OKLaboklab(53.51% 0.2035 -0.1021)
OKLCHoklch(53.51% 0.228 333.4)
XYZxyz(25.5079, 12.8432, 35.7788)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317A3 #17B327
analogous
#7517B3 #B317A3 #B31755
triadic
#B317A3 #A3B317 #17A3B3
tetradic
#B317A3 #B37517 #17B327 #1755B3
square
#B317A3 #B37517 #17B327 #1755B3
split-complementary
#B317A3 #55B317 #17B375
monochromatic
#470940 #7D1072 #B317A3 #E324CF #EA5BDB

Accessibility & contrast

On white

5.89
#B317A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#B317A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317A3
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317A3#FFFFFF#000000##FFFFFF
##B317A31.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0957A6
Deuteranopia (green-blind)
#546CA0
Tritanopia (blue-blind)
#BB2D61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b317a3;
/* rgb */ color: rgb(179, 23, 163);
/* oklch */ color: oklch(53.5% 0.228 333.4);
Tailwind
colors: {
  custom: {
    50: '#ce6dbf',
    500: '#b317a3',
    950: '#000000',
  },
}
SCSS
$custom: #b317a3;
$custom-light: #ce6dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#b317a3",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 163
  },
  "hsl": {
    "h": 306.154,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.53507,
    "c": 0.22766,
    "h": 333.4
  },
  "luminance": 0.12841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B317A3

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

Preview Lab → · Contrast checker → · Palette generator →

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