#B316A8#B316A8

#B316A8 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.8% C 0.232 H 331.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#B316A8
RGBrgb(179, 22, 168)
HSLhsl(304, 78%, 39%)
HSVhsv(304, 88%, 70%)
CMYKcmyk(0%, 87.7%, 6.1%, 29.8%)
CIE-LABlab(42.74, 71.14, -39.75)
CIE-LCHlch(42.74, 81.49, 330.81°)
OKLaboklab(53.75% 0.2039 -0.1097)
OKLCHoklch(53.75% 0.232 331.7)
XYZxyz(25.9453, 12.9869, 38.1785)
Luminance0.1298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B316A8 #16B321
analogous
#7016B3 #B316A8 #B3165A
triadic
#B316A8 #A8B316 #16A8B3
tetradic
#B316A8 #B37016 #16B321 #165AB3
square
#B316A8 #B37016 #16B321 #165AB3
split-complementary
#B316A8 #5AB316 #16B370
monochromatic
#460942 #7C0F75 #B316A8 #E422D6 #EB59E0

Accessibility & contrast

On white

5.84
#B316A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#B316A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B316A8
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B316A8#FFFFFF#000000##FFFFFF
##B316A81.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#516CA5
Tritanopia (blue-blind)
#BB3064
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b316a8;
/* rgb */ color: rgb(179, 22, 168);
/* oklch */ color: oklch(53.8% 0.232 331.7);
Tailwind
colors: {
  custom: {
    50: '#ce6dc2',
    500: '#b316a8',
    950: '#000000',
  },
}
SCSS
$custom: #b316a8;
$custom-light: #ce6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#b316a8",
  "rgb": {
    "r": 179,
    "g": 22,
    "b": 168
  },
  "hsl": {
    "h": 304.204,
    "s": 78.109,
    "l": 39.412
  },
  "oklch": {
    "l": 0.5375,
    "c": 0.23157,
    "h": 331.7
  },
  "luminance": 0.12985
}

Semantic roles & 50–950 ramp

primary
#B316A8
secondary
#57CE5F
accent
#F54133
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140812
muted
#837B81

Preview Lab

Preview with #B316A8

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

Preview Lab → · Contrast checker → · Palette generator →

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