#B418AB#B418AB

#B418AB is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.2% C 0.233 H 331.1°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B418AB
RGBrgb(180, 24, 171)
HSLhsl(303, 76%, 40%)
HSVhsv(303, 87%, 71%)
CMYKcmyk(0%, 86.7%, 5%, 29.4%)
CIE-LABlab(43.21, 71.42, -40.78)
CIE-LCHlch(43.21, 82.25, 330.27°)
OKLaboklab(54.17% 0.2038 -0.1127)
OKLCHoklch(54.17% 0.233 331.1)
XYZxyz(26.4997, 13.2991, 39.6915)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B418AB #18B421
analogous
#6F18B4 #B418AB #B4185D
triadic
#B418AB #ABB418 #18ABB4
tetradic
#B418AB #B46F18 #18B421 #185DB4
square
#B418AB #B46F18 #18B421 #185DB4
split-complementary
#B418AB #5DB418 #18B46F
monochromatic
#480A44 #7E1178 #B418AB #E227D7 #E95DE1

Accessibility & contrast

On white

5.74
#B418AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B418AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B418AB
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B418AB#FFFFFF#000000##FFFFFF
##B418AB1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b418ab;
/* rgb */ color: rgb(180, 24, 171);
/* oklch */ color: oklch(54.2% 0.233 331.1);
Tailwind
colors: {
  custom: {
    50: '#cf6ec4',
    500: '#b418ab',
    950: '#000000',
  },
}
SCSS
$custom: #b418ab;
$custom-light: #cf6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#b418ab",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 171
  },
  "hsl": {
    "h": 303.462,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.54168,
    "c": 0.23289,
    "h": 331.1
  },
  "luminance": 0.13297
}

Semantic roles & 50–950 ramp

primary
#B418AB
secondary
#5BCD61
accent
#F34035
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B418AB

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

Preview Lab → · Contrast checker → · Palette generator →

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