#B418A6#B418A6

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

Color values

HEX#B418A6
RGBrgb(180, 24, 166)
HSLhsl(305, 76%, 40%)
HSVhsv(305, 87%, 71%)
CMYKcmyk(0%, 86.7%, 7.8%, 29.4%)
CIE-LABlab(42.93, 70.69, -38.25)
CIE-LCHlch(42.93, 80.38, 331.59°)
OKLaboklab(53.88% 0.2039 -0.1053)
OKLCHoklch(53.88% 0.23 332.7)
XYZxyz(26.0321, 13.1121, 37.2289)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B418A6 #18B426
analogous
#7418B4 #B418A6 #B41858
triadic
#B418A6 #A6B418 #18A6B4
tetradic
#B418A6 #B47418 #18B426 #1858B4
square
#B418A6 #B47418 #18B426 #1858B4
split-complementary
#B418A6 #58B418 #18B474
monochromatic
#480A42 #7E1174 #B418A6 #E227D1 #E95DDD

Accessibility & contrast

On white

5.80
#B418A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B418A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B418A6
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B418A6#FFFFFF#000000##FFFFFF
##B418A61.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0358A9
Deuteranopia (green-blind)
#546DA3
Tritanopia (blue-blind)
#BC3063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b418a6;
/* rgb */ color: rgb(180, 24, 166);
/* oklch */ color: oklch(53.9% 0.230 332.7);
Tailwind
colors: {
  custom: {
    50: '#cf6ec1',
    500: '#b418a6',
    950: '#000000',
  },
}
SCSS
$custom: #b418a6;
$custom-light: #cf6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b418a6",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 166
  },
  "hsl": {
    "h": 305.385,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.53881,
    "c": 0.22952,
    "h": 332.7
  },
  "luminance": 0.1311
}

Semantic roles & 50–950 ramp

primary
#B418A6
secondary
#5BCD65
accent
#F34635
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B418A6

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

Preview Lab → · Contrast checker → · Palette generator →

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