#B418A7#B418A7

#B418A7 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.9% C 0.230 H 332.3°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B418A7
RGBrgb(180, 24, 167)
HSLhsl(305, 76%, 40%)
HSVhsv(305, 87%, 71%)
CMYKcmyk(0%, 86.7%, 7.2%, 29.4%)
CIE-LABlab(42.99, 70.84, -38.76)
CIE-LCHlch(42.99, 80.75, 331.32°)
OKLaboklab(53.94% 0.2039 -0.1068)
OKLCHoklch(53.94% 0.23 332.3)
XYZxyz(26.1242, 13.1489, 37.7138)
Luminance0.1315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B418A7 #18B425
analogous
#7318B4 #B418A7 #B41859
triadic
#B418A7 #A7B418 #18A7B4
tetradic
#B418A7 #B47318 #18B425 #1859B4
square
#B418A7 #B47318 #18B425 #1859B4
split-complementary
#B418A7 #59B418 #18B473
monochromatic
#480A43 #7E1175 #B418A7 #E227D3 #E95DDE

Accessibility & contrast

On white

5.79
#B418A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B418A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B418A7
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B418A7#FFFFFF#000000##FFFFFF
##B418A71.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#536DA4
Tritanopia (blue-blind)
#BC3063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b418a7;
/* rgb */ color: rgb(180, 24, 167);
/* oklch */ color: oklch(53.9% 0.230 332.3);
Tailwind
colors: {
  custom: {
    50: '#cf6ec1',
    500: '#b418a7',
    950: '#000000',
  },
}
SCSS
$custom: #b418a7;
$custom-light: #cf6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b418a7",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 167
  },
  "hsl": {
    "h": 305,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.53938,
    "c": 0.23019,
    "h": 332.3
  },
  "luminance": 0.13147
}

Semantic roles & 50–950 ramp

primary
#B418A7
secondary
#5BCD64
accent
#F34535
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B418A7

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

Preview Lab → · Contrast checker → · Palette generator →

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