#B316A2#B316A2

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

Color values

HEX#B316A2
RGBrgb(179, 22, 162)
HSLhsl(306, 78%, 39%)
HSVhsv(306, 88%, 70%)
CMYKcmyk(0%, 87.7%, 9.5%, 29.8%)
CIE-LABlab(42.41, 70.28, -36.69)
CIE-LCHlch(42.41, 79.28, 332.43°)
OKLaboklab(53.41% 0.204 -0.1008)
OKLCHoklch(53.41% 0.228 333.7)
XYZxyz(25.3992, 12.7685, 35.3023)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B316A2 #16B327
analogous
#7616B3 #B316A2 #B31654
triadic
#B316A2 #A2B316 #16A2B3
tetradic
#B316A2 #B37616 #16B327 #1654B3
square
#B316A2 #B37616 #16B327 #1654B3
split-complementary
#B316A2 #54B316 #16B376
monochromatic
#46093F #7C0F71 #B316A2 #E422CF #EB59DB

Accessibility & contrast

On white

5.91
#B316A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B316A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B316A2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B316A2#FFFFFF#000000##FFFFFF
##B316A21.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b316a2;
/* rgb */ color: rgb(179, 22, 162);
/* oklch */ color: oklch(53.4% 0.228 333.7);
Tailwind
colors: {
  custom: {
    50: '#ce6dbe',
    500: '#b316a2',
    950: '#000000',
  },
}
SCSS
$custom: #b316a2;
$custom-light: #ce6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b316a2",
  "rgb": {
    "r": 179,
    "g": 22,
    "b": 162
  },
  "hsl": {
    "h": 306.497,
    "s": 78.109,
    "l": 39.412
  },
  "oklch": {
    "l": 0.53408,
    "c": 0.22758,
    "h": 333.7
  },
  "luminance": 0.12766
}

Semantic roles & 50–950 ramp

primary
#B316A2
secondary
#57CE64
accent
#F54833
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B316A2

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

Preview Lab → · Contrast checker → · Palette generator →

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