#B315A0#B315A0

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

Color values

HEX#B315A0
RGBrgb(179, 21, 160)
HSLhsl(307, 79%, 39%)
HSVhsv(307, 88%, 70%)
CMYKcmyk(0%, 88.3%, 10.6%, 29.8%)
CIE-LABlab(42.25, 70.16, -35.75)
CIE-LCHlch(42.25, 78.74, 333.00°)
OKLaboklab(53.26% 0.2045 -0.0981)
OKLCHoklch(53.26% 0.227 334.4)
XYZxyz(25.2041, 12.6605, 34.3672)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B315A0 #15B328
analogous
#7715B3 #B315A0 #B31551
triadic
#B315A0 #A0B315 #15A0B3
tetradic
#B315A0 #B37715 #15B328 #1551B3
square
#B315A0 #B37715 #15B328 #1551B3
split-complementary
#B315A0 #51B315 #15B377
monochromatic
#45083E #7C0F6F #B315A0 #E520CD #EB57D9

Accessibility & contrast

On white

5.95
#B315A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#B315A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B315A0
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B315A0#FFFFFF#000000##FFFFFF
##B315A01.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E56A3
Deuteranopia (green-blind)
#556B9D
Tritanopia (blue-blind)
#BC2A5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b315a0;
/* rgb */ color: rgb(179, 21, 160);
/* oklch */ color: oklch(53.3% 0.227 334.4);
Tailwind
colors: {
  custom: {
    50: '#ce6dbc',
    500: '#b315a0',
    950: '#000000',
  },
}
SCSS
$custom: #b315a0;
$custom-light: #ce6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b315a0",
  "rgb": {
    "r": 179,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 307.215,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.53256,
    "c": 0.22683,
    "h": 334.4
  },
  "luminance": 0.12658
}

Semantic roles & 50–950 ramp

primary
#B315A0
secondary
#56CE64
accent
#F54A32
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B315A0

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

Preview Lab → · Contrast checker → · Palette generator →

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