#B318A4#B318A4

#B318A4 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.6% C 0.228 H 333.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B318A4
RGBrgb(179, 24, 164)
HSLhsl(306, 76%, 40%)
HSVhsv(306, 87%, 70%)
CMYKcmyk(0%, 86.6%, 8.4%, 29.8%)
CIE-LABlab(42.64, 70.21, -37.52)
CIE-LCHlch(42.64, 79.61, 331.88°)
OKLaboklab(53.61% 0.203 -0.1033)
OKLCHoklch(53.61% 0.228 333)
XYZxyz(25.6181, 12.9196, 36.2593)
Luminance0.1292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318A4 #18B327
analogous
#7418B3 #B318A4 #B31857
triadic
#B318A4 #A4B318 #18A4B3
tetradic
#B318A4 #B37418 #18B327 #1857B3
square
#B318A4 #B37418 #18B327 #1857B3
split-complementary
#B318A4 #57B318 #18B374
monochromatic
#470A41 #7D1173 #B318A4 #E226D0 #E95CDC

Accessibility & contrast

On white

5.86
#B318A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#B318A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318A4
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318A4#FFFFFF#000000##FFFFFF
##B318A41.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0757A7
Deuteranopia (green-blind)
#546CA1
Tritanopia (blue-blind)
#BB2F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b318a4;
/* rgb */ color: rgb(179, 24, 164);
/* oklch */ color: oklch(53.6% 0.228 333.0);
Tailwind
colors: {
  custom: {
    50: '#ce6dbf',
    500: '#b318a4',
    950: '#000000',
  },
}
SCSS
$custom: #b318a4;
$custom-light: #ce6dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#b318a4",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 164
  },
  "hsl": {
    "h": 305.806,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53606,
    "c": 0.22774,
    "h": 333
  },
  "luminance": 0.12917
}

Semantic roles & 50–950 ramp

primary
#B318A4
secondary
#5ACD65
accent
#F34735
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B318A4

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

Preview Lab → · Contrast checker → · Palette generator →

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