#B418A0#B418A0

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

Color values

HEX#B418A0
RGBrgb(180, 24, 160)
HSLhsl(308, 76%, 40%)
HSVhsv(308, 87%, 71%)
CMYKcmyk(0%, 86.7%, 11.1%, 29.4%)
CIE-LABlab(42.61, 69.84, -35.17)
CIE-LCHlch(42.61, 78.19, 333.27°)
OKLaboklab(53.55% 0.2039 -0.0964)
OKLCHoklch(53.55% 0.226 334.7)
XYZxyz(25.4945, 12.8970, 34.3976)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B418A0 #18B42C
analogous
#7A18B4 #B418A0 #B41852
triadic
#B418A0 #A0B418 #18A0B4
tetradic
#B418A0 #B47A18 #18B42C #1852B4
square
#B418A0 #B47A18 #18B42C #1852B4
split-complementary
#B418A0 #52B418 #18B47A
monochromatic
#480A40 #7E1170 #B418A0 #E227CA #E95DD7

Accessibility & contrast

On white

5.87
#B418A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#B418A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B418A0
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B418A0#FFFFFF#000000##FFFFFF
##B418A01.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1457A3
Deuteranopia (green-blind)
#576C9D
Tritanopia (blue-blind)
#BD2B5F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b418a0;
/* rgb */ color: rgb(180, 24, 160);
/* oklch */ color: oklch(53.5% 0.226 334.7);
Tailwind
colors: {
  custom: {
    50: '#cf6dbc',
    500: '#b418a0',
    950: '#000000',
  },
}
SCSS
$custom: #b418a0;
$custom-light: #cf6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b418a0",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 307.692,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.53546,
    "c": 0.22554,
    "h": 334.7
  },
  "luminance": 0.12895
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B418A0

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

Preview Lab → · Contrast checker → · Palette generator →

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