#B418B1#B418B1

#B418B1 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.5% C 0.237 H 329.2°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B418B1
RGBrgb(180, 24, 177)
HSLhsl(301, 76%, 40%)
HSVhsv(301, 87%, 71%)
CMYKcmyk(0%, 86.7%, 1.7%, 29.4%)
CIE-LABlab(43.56, 72.32, -43.79)
CIE-LCHlch(43.56, 84.55, 328.80°)
OKLaboklab(54.52% 0.2035 -0.1215)
OKLCHoklch(54.52% 0.237 329.2)
XYZxyz(27.0846, 13.5331, 42.7721)
Luminance0.1353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B418B1 #18B41B
analogous
#6918B4 #B418B1 #B41863
triadic
#B418B1 #B1B418 #18B1B4
tetradic
#B418B1 #B46918 #18B41B #1863B4
square
#B418B1 #B46918 #18B41B #1863B4
split-complementary
#B418B1 #63B418 #18B469
monochromatic
#480A47 #7E117C #B418B1 #E227DF #E95DE7

Accessibility & contrast

On white

5.67
#B418B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#B418B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B418B1
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B418B1#FFFFFF#000000##FFFFFF
##B418B11.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#4E6EAE
Tritanopia (blue-blind)
#BA3769
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b418b1;
/* rgb */ color: rgb(180, 24, 177);
/* oklch */ color: oklch(54.5% 0.237 329.2);
Tailwind
colors: {
  custom: {
    50: '#cf6ec9',
    500: '#b418b1',
    950: '#000000',
  },
}
SCSS
$custom: #b418b1;
$custom-light: #cf6ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#b418b1",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 177
  },
  "hsl": {
    "h": 301.154,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.54523,
    "c": 0.23701,
    "h": 329.2
  },
  "luminance": 0.13531
}

Semantic roles & 50–950 ramp

primary
#B418B1
secondary
#5BCD5D
accent
#F33835
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B418B1

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

Preview Lab → · Contrast checker → · Palette generator →

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