#B316A7#B316A7

#B316A7 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.7% C 0.231 H 332.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#B316A7
RGBrgb(179, 22, 167)
HSLhsl(305, 78%, 39%)
HSVhsv(305, 88%, 70%)
CMYKcmyk(0%, 87.7%, 6.7%, 29.8%)
CIE-LABlab(42.69, 71.00, -39.24)
CIE-LCHlch(42.69, 81.12, 331.07°)
OKLaboklab(53.69% 0.204 -0.1082)
OKLCHoklch(53.69% 0.231 332)
XYZxyz(25.8525, 12.9498, 37.6897)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B316A7 #16B322
analogous
#7116B3 #B316A7 #B31659
triadic
#B316A7 #A7B316 #16A7B3
tetradic
#B316A7 #B37116 #16B322 #1659B3
square
#B316A7 #B37116 #16B322 #1659B3
split-complementary
#B316A7 #59B316 #16B371
monochromatic
#460941 #7C0F74 #B316A7 #E422D5 #EB59DF

Accessibility & contrast

On white

5.85
#B316A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B316A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B316A7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B316A7#FFFFFF#000000##FFFFFF
##B316A71.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#BB3063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b316a7;
/* rgb */ color: rgb(179, 22, 167);
/* oklch */ color: oklch(53.7% 0.231 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce6dc1',
    500: '#b316a7',
    950: '#000000',
  },
}
SCSS
$custom: #b316a7;
$custom-light: #ce6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b316a7",
  "rgb": {
    "r": 179,
    "g": 22,
    "b": 167
  },
  "hsl": {
    "h": 304.586,
    "s": 78.109,
    "l": 39.412
  },
  "oklch": {
    "l": 0.53692,
    "c": 0.23091,
    "h": 332
  },
  "luminance": 0.12948
}

Semantic roles & 50–950 ramp

primary
#B316A7
secondary
#57CE60
accent
#F54233
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B316A7

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

Preview Lab → · Contrast checker → · Palette generator →

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