#B317A2#B317A2

#B317A2 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.227 H 333.7°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#B317A2
RGBrgb(179, 23, 162)
HSLhsl(307, 77%, 40%)
HSVhsv(307, 87%, 70%)
CMYKcmyk(0%, 87.2%, 9.5%, 29.8%)
CIE-LABlab(42.47, 70.10, -36.59)
CIE-LCHlch(42.47, 79.08, 332.44°)
OKLaboklab(53.45% 0.2035 -0.1006)
OKLCHoklch(53.45% 0.227 333.7)
XYZxyz(25.4187, 12.8075, 35.3088)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B317A2 #17B328
analogous
#7617B3 #B317A2 #B31754
triadic
#B317A2 #A2B317 #17A2B3
tetradic
#B317A2 #B37617 #17B328 #1754B3
square
#B317A2 #B37617 #17B328 #1754B3
split-complementary
#B317A2 #54B317 #17B376
monochromatic
#470940 #7D1071 #B317A2 #E324CE #EA5BDA

Accessibility & contrast

On white

5.90
#B317A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#B317A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B317A2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B317A2#FFFFFF#000000##FFFFFF
##B317A21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C57A5
Deuteranopia (green-blind)
#556C9F
Tritanopia (blue-blind)
#BC2D60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b317a2;
/* rgb */ color: rgb(179, 23, 162);
/* oklch */ color: oklch(53.4% 0.227 333.7);
Tailwind
colors: {
  custom: {
    50: '#ce6dbe',
    500: '#b317a2',
    950: '#000000',
  },
}
SCSS
$custom: #b317a2;
$custom-light: #ce6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b317a2",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 162
  },
  "hsl": {
    "h": 306.538,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.5345,
    "c": 0.227,
    "h": 333.7
  },
  "luminance": 0.12805
}

Semantic roles & 50–950 ramp

primary
#B317A2
secondary
#58CD65
accent
#F44934
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B317A2

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

Preview Lab → · Contrast checker → · Palette generator →

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