#B418A5#B418A5

#B418A5 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.8% C 0.229 H 333.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#B418A5
RGBrgb(180, 24, 165)
HSLhsl(306, 76%, 40%)
HSVhsv(306, 87%, 71%)
CMYKcmyk(0%, 86.7%, 8.3%, 29.4%)
CIE-LABlab(42.88, 70.55, -37.74)
CIE-LCHlch(42.88, 80.01, 331.86°)
OKLaboklab(53.82% 0.2039 -0.1039)
OKLCHoklch(53.82% 0.229 333)
XYZxyz(25.9408, 13.0755, 36.7476)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B418A5 #18B427
analogous
#7518B4 #B418A5 #B41857
triadic
#B418A5 #A5B418 #18A5B4
tetradic
#B418A5 #B47518 #18B427 #1857B4
square
#B418A5 #B47518 #18B427 #1857B4
split-complementary
#B418A5 #57B418 #18B475
monochromatic
#480A42 #7E1174 #B418A5 #E227D0 #E95DDC

Accessibility & contrast

On white

5.81
#B418A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B418A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B418A5
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B418A5#FFFFFF#000000##FFFFFF
##B418A51.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0758A8
Deuteranopia (green-blind)
#546DA2
Tritanopia (blue-blind)
#BC2F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b418a5;
/* rgb */ color: rgb(180, 24, 165);
/* oklch */ color: oklch(53.8% 0.229 333.0);
Tailwind
colors: {
  custom: {
    50: '#cf6ec0',
    500: '#b418a5',
    950: '#000000',
  },
}
SCSS
$custom: #b418a5;
$custom-light: #cf6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#b418a5",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 165
  },
  "hsl": {
    "h": 305.769,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.53824,
    "c": 0.22885,
    "h": 333
  },
  "luminance": 0.13073
}

Semantic roles & 50–950 ramp

primary
#B418A5
secondary
#5BCD66
accent
#F34735
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B418A5

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

Preview Lab → · Contrast checker → · Palette generator →

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