#B315A1#B315A1

#B315A1 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.3% C 0.227 H 334.0°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#B315A1
RGBrgb(179, 21, 161)
HSLhsl(307, 79%, 39%)
HSVhsv(307, 88%, 70%)
CMYKcmyk(0%, 88.3%, 10.1%, 29.8%)
CIE-LABlab(42.30, 70.30, -36.26)
CIE-LCHlch(42.30, 79.11, 332.72°)
OKLaboklab(53.31% 0.2045 -0.0996)
OKLCHoklch(53.31% 0.227 334)
XYZxyz(25.2919, 12.6956, 34.8298)
Luminance0.1269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B315A1 #15B327
analogous
#7615B3 #B315A1 #B31552
triadic
#B315A1 #A1B315 #15A1B3
tetradic
#B315A1 #B37615 #15B327 #1552B3
square
#B315A1 #B37615 #15B327 #1552B3
split-complementary
#B315A1 #52B315 #15B376
monochromatic
#45083E #7C0F70 #B315A1 #E520CE #EB57DA

Accessibility & contrast

On white

5.93
#B315A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#B315A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B315A1
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B315A1#FFFFFF#000000##FFFFFF
##B315A11.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C56A4
Deuteranopia (green-blind)
#556B9E
Tritanopia (blue-blind)
#BC2B5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b315a1;
/* rgb */ color: rgb(179, 21, 161);
/* oklch */ color: oklch(53.3% 0.227 334.0);
Tailwind
colors: {
  custom: {
    50: '#ce6dbd',
    500: '#b315a1',
    950: '#000000',
  },
}
SCSS
$custom: #b315a1;
$custom-light: #ce6dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#b315a1",
  "rgb": {
    "r": 179,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 306.835,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.53312,
    "c": 0.22747,
    "h": 334
  },
  "luminance": 0.12693
}

Semantic roles & 50–950 ramp

primary
#B315A1
secondary
#56CE63
accent
#F54932
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B315A1

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

Preview Lab → · Contrast checker → · Palette generator →

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