#B318A1#B318A1

#B318A1 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.226 H 334.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#B318A1
RGBrgb(179, 24, 161)
HSLhsl(307, 76%, 40%)
HSVhsv(307, 87%, 70%)
CMYKcmyk(0%, 86.6%, 10.1%, 29.8%)
CIE-LABlab(42.48, 69.78, -35.98)
CIE-LCHlch(42.48, 78.51, 332.72°)
OKLaboklab(53.44% 0.203 -0.0988)
OKLCHoklch(53.44% 0.226 334)
XYZxyz(25.3504, 12.8125, 34.8493)
Luminance0.1281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318A1 #18B32A
analogous
#7818B3 #B318A1 #B31853
triadic
#B318A1 #A1B318 #18A1B3
tetradic
#B318A1 #B37818 #18B32A #1853B3
square
#B318A1 #B37818 #18B32A #1853B3
split-complementary
#B318A1 #53B318 #18B378
monochromatic
#470A40 #7D1170 #B318A1 #E226CC #E95CD9

Accessibility & contrast

On white

5.90
#B318A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#B318A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318A1
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318A1#FFFFFF#000000##FFFFFF
##B318A11.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1056A4
Deuteranopia (green-blind)
#566C9E
Tritanopia (blue-blind)
#BC2D60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b318a1;
/* rgb */ color: rgb(179, 24, 161);
/* oklch */ color: oklch(53.4% 0.226 334.0);
Tailwind
colors: {
  custom: {
    50: '#ce6dbd',
    500: '#b318a1',
    950: '#000000',
  },
}
SCSS
$custom: #b318a1;
$custom-light: #ce6dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#b318a1",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 306.968,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53439,
    "c": 0.22574,
    "h": 334
  },
  "luminance": 0.1281
}

Semantic roles & 50–950 ramp

primary
#B318A1
secondary
#5ACD67
accent
#F34B35
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B318A1

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

Preview Lab → · Contrast checker → · Palette generator →

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