#B318A8#B318A8

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

Color values

HEX#B318A8
RGBrgb(179, 24, 168)
HSLhsl(304, 76%, 40%)
HSVhsv(304, 87%, 70%)
CMYKcmyk(0%, 86.6%, 6.1%, 29.8%)
CIE-LABlab(42.86, 70.79, -39.56)
CIE-LCHlch(42.86, 81.10, 330.80°)
OKLaboklab(53.84% 0.2029 -0.1092)
OKLCHoklch(53.84% 0.23 331.7)
XYZxyz(25.9850, 13.0664, 38.1917)
Luminance0.1306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318A8 #18B323
analogous
#7118B3 #B318A8 #B3185B
triadic
#B318A8 #A8B318 #18A8B3
tetradic
#B318A8 #B37118 #18B323 #185BB3
square
#B318A8 #B37118 #18B323 #185BB3
split-complementary
#B318A8 #5BB318 #18B371
monochromatic
#470A43 #7D1175 #B318A8 #E226D5 #E95CDF

Accessibility & contrast

On white

5.81
#B318A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B318A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318A8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318A8#FFFFFF#000000##FFFFFF
##B318A81.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b318a8;
/* rgb */ color: rgb(179, 24, 168);
/* oklch */ color: oklch(53.8% 0.230 331.7);
Tailwind
colors: {
  custom: {
    50: '#ce6ec2',
    500: '#b318a8',
    950: '#000000',
  },
}
SCSS
$custom: #b318a8;
$custom-light: #ce6ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#b318a8",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 168
  },
  "hsl": {
    "h": 304.258,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53835,
    "c": 0.23043,
    "h": 331.7
  },
  "luminance": 0.13064
}

Semantic roles & 50–950 ramp

primary
#B318A8
secondary
#5ACD62
accent
#F34235
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140812
muted
#837B81

Preview Lab

Preview with #B318A8

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

Preview Lab → · Contrast checker → · Palette generator →

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