#B317AA#B317AA

#B317AA is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.9% C 0.232 H 331.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#B317AA
RGBrgb(179, 23, 170)
HSLhsl(303, 77%, 40%)
HSVhsv(303, 87%, 70%)
CMYKcmyk(0%, 87.2%, 5%, 29.8%)
CIE-LABlab(42.91, 71.26, -40.67)
CIE-LCHlch(42.91, 82.05, 330.29°)
OKLaboklab(53.91% 0.2034 -0.1124)
OKLCHoklch(53.91% 0.232 331.1)
XYZxyz(26.1525, 13.1010, 39.1738)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317AA #17B320
analogous
#6E17B3 #B317AA #B3175C
triadic
#B317AA #AAB317 #17AAB3
tetradic
#B317AA #B36E17 #17B320 #175CB3
square
#B317AA #B36E17 #17B320 #175CB3
split-complementary
#B317AA #5CB317 #17B36E
monochromatic
#470943 #7D1076 #B317AA #E324D8 #EA5BE2

Accessibility & contrast

On white

5.80
#B317AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B317AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317AA
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317AA#FFFFFF#000000##FFFFFF
##B317AA1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#516CA7
Tritanopia (blue-blind)
#BA3265
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b317aa;
/* rgb */ color: rgb(179, 23, 170);
/* oklch */ color: oklch(53.9% 0.232 331.1);
Tailwind
colors: {
  custom: {
    50: '#ce6ec4',
    500: '#b317aa',
    950: '#000000',
  },
}
SCSS
$custom: #b317aa;
$custom-light: #ce6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#b317aa",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 170
  },
  "hsl": {
    "h": 303.462,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.53908,
    "c": 0.23236,
    "h": 331.1
  },
  "luminance": 0.13099
}

Semantic roles & 50–950 ramp

primary
#B317AA
secondary
#58CD5F
accent
#F43F34
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B317AA

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

Preview Lab → · Contrast checker → · Palette generator →

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