#B418A1#B418A1

#B418A1 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.6% C 0.226 H 334.3°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B418A1
RGBrgb(180, 24, 161)
HSLhsl(307, 76%, 40%)
HSVhsv(307, 87%, 71%)
CMYKcmyk(0%, 86.7%, 10.6%, 29.4%)
CIE-LABlab(42.66, 69.98, -35.68)
CIE-LCHlch(42.66, 78.55, 332.98°)
OKLaboklab(53.6% 0.2039 -0.0979)
OKLCHoklch(53.6% 0.226 334.3)
XYZxyz(25.5824, 12.9322, 34.8601)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B418A1 #18B42B
analogous
#7918B4 #B418A1 #B41853
triadic
#B418A1 #A1B418 #18A1B4
tetradic
#B418A1 #B47918 #18B42B #1853B4
square
#B418A1 #B47918 #18B42B #1853B4
split-complementary
#B418A1 #53B418 #18B479
monochromatic
#480A40 #7E1171 #B418A1 #E227CB #E95DD8

Accessibility & contrast

On white

5.86
#B418A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B418A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B418A1
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B418A1#FFFFFF#000000##FFFFFF
##B418A11.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1257A4
Deuteranopia (green-blind)
#576C9E
Tritanopia (blue-blind)
#BD2C60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b418a1;
/* rgb */ color: rgb(180, 24, 161);
/* oklch */ color: oklch(53.6% 0.226 334.3);
Tailwind
colors: {
  custom: {
    50: '#cf6dbd',
    500: '#b418a1',
    950: '#000000',
  },
}
SCSS
$custom: #b418a1;
$custom-light: #cf6dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#b418a1",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 307.308,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.53601,
    "c": 0.2262,
    "h": 334.3
  },
  "luminance": 0.1293
}

Semantic roles & 50–950 ramp

primary
#B418A1
secondary
#5BCD69
accent
#F34C35
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B418A1

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

Preview Lab → · Contrast checker → · Palette generator →

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