#B318A5#B318A5

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

Color values

HEX#B318A5
RGBrgb(179, 24, 165)
HSLhsl(305, 76%, 40%)
HSVhsv(305, 87%, 70%)
CMYKcmyk(0%, 86.6%, 7.8%, 29.8%)
CIE-LABlab(42.70, 70.36, -38.03)
CIE-LCHlch(42.70, 79.98, 331.61°)
OKLaboklab(53.66% 0.203 -0.1048)
OKLCHoklch(53.66% 0.228 332.7)
XYZxyz(25.7087, 12.9559, 36.7368)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318A5 #18B326
analogous
#7318B3 #B318A5 #B31858
triadic
#B318A5 #A5B318 #18A5B3
tetradic
#B318A5 #B37318 #18B326 #1858B3
square
#B318A5 #B37318 #18B326 #1858B3
split-complementary
#B318A5 #58B318 #18B373
monochromatic
#470A42 #7D1173 #B318A5 #E226D1 #E95CDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B318A5#FFFFFF#000000##FFFFFF
##B318A51.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)
#0457A8
Deuteranopia (green-blind)
#546CA2
Tritanopia (blue-blind)
#BB2F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b318a5;
/* rgb */ color: rgb(179, 24, 165);
/* oklch */ color: oklch(53.7% 0.228 332.7);
Tailwind
colors: {
  custom: {
    50: '#ce6ec0',
    500: '#b318a5',
    950: '#000000',
  },
}
SCSS
$custom: #b318a5;
$custom-light: #ce6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#b318a5",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 165
  },
  "hsl": {
    "h": 305.419,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53663,
    "c": 0.22841,
    "h": 332.7
  },
  "luminance": 0.12954
}

Semantic roles & 50–950 ramp

primary
#B318A5
secondary
#5ACD64
accent
#F34635
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B318A5

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

Preview Lab → · Contrast checker → · Palette generator →

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