#B318AB#B318AB

#B318AB is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.232 H 330.8°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#B318AB
RGBrgb(179, 24, 171)
HSLhsl(303, 76%, 40%)
HSVhsv(303, 87%, 70%)
CMYKcmyk(0%, 86.6%, 4.5%, 29.8%)
CIE-LABlab(43.03, 71.23, -41.08)
CIE-LCHlch(43.03, 82.23, 330.03°)
OKLaboklab(54.01% 0.2028 -0.1136)
OKLCHoklch(54.01% 0.232 330.8)
XYZxyz(26.2677, 13.1795, 39.6806)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318AB #18B320
analogous
#6E18B3 #B318AB #B3185D
triadic
#B318AB #ABB318 #18ABB3
tetradic
#B318AB #B36E18 #18B320 #185DB3
square
#B318AB #B36E18 #18B320 #185DB3
split-complementary
#B318AB #5DB318 #18B36E
monochromatic
#470A44 #7D1177 #B318AB #E226D8 #E95CE2

Accessibility & contrast

On white

5.78
#B318AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B318AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318AB
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318AB#FFFFFF#000000##FFFFFF
##B318AB1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#506DA8
Tritanopia (blue-blind)
#BA3366
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b318ab;
/* rgb */ color: rgb(179, 24, 171);
/* oklch */ color: oklch(54.0% 0.232 330.8);
Tailwind
colors: {
  custom: {
    50: '#ce6ec4',
    500: '#b318ab',
    950: '#000000',
  },
}
SCSS
$custom: #b318ab;
$custom-light: #ce6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#b318ab",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 171
  },
  "hsl": {
    "h": 303.097,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.54009,
    "c": 0.23247,
    "h": 330.8
  },
  "luminance": 0.13177
}

Semantic roles & 50–950 ramp

primary
#B318AB
secondary
#5ACD60
accent
#F33F35
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B318AB

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

Preview Lab → · Contrast checker → · Palette generator →

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