#B418AF#B418AF

#B418AF is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.4% C 0.236 H 329.8°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#B418AF
RGBrgb(180, 24, 175)
HSLhsl(302, 76%, 40%)
HSVhsv(302, 87%, 71%)
CMYKcmyk(0%, 86.7%, 2.8%, 29.4%)
CIE-LABlab(43.44, 72.02, -42.79)
CIE-LCHlch(43.44, 83.77, 329.28°)
OKLaboklab(54.4% 0.2036 -0.1185)
OKLCHoklch(54.4% 0.236 329.8)
XYZxyz(26.8868, 13.4539, 41.7299)
Luminance0.1345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B418AF #18B41D
analogous
#6B18B4 #B418AF #B41861
triadic
#B418AF #AFB418 #18AFB4
tetradic
#B418AF #B46B18 #18B41D #1861B4
square
#B418AF #B46B18 #18B41D #1861B4
split-complementary
#B418AF #61B418 #18B46B
monochromatic
#480A46 #7E117B #B418AF #E227DC #E95DE5

Accessibility & contrast

On white

5.69
#B418AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B418AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B418AF
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B418AF#FFFFFF#000000##FFFFFF
##B418AF1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#4F6DAC
Tritanopia (blue-blind)
#BB3568
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b418af;
/* rgb */ color: rgb(180, 24, 175);
/* oklch */ color: oklch(54.4% 0.236 329.8);
Tailwind
colors: {
  custom: {
    50: '#cf6ec7',
    500: '#b418af',
    950: '#000000',
  },
}
SCSS
$custom: #b418af;
$custom-light: #cf6ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#b418af",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 175
  },
  "hsl": {
    "h": 301.923,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.54404,
    "c": 0.23563,
    "h": 329.8
  },
  "luminance": 0.13452
}

Semantic roles & 50–950 ramp

primary
#B418AF
secondary
#5BCD5E
accent
#F33B35
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B418AF

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

Preview Lab → · Contrast checker → · Palette generator →

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