#B418B0#B418B0

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

Color values

HEX#B418B0
RGBrgb(180, 24, 176)
HSLhsl(302, 76%, 40%)
HSVhsv(302, 87%, 71%)
CMYKcmyk(0%, 86.7%, 2.2%, 29.4%)
CIE-LABlab(43.50, 72.17, -43.29)
CIE-LCHlch(43.50, 84.16, 329.04°)
OKLaboklab(54.46% 0.2036 -0.12)
OKLCHoklch(54.46% 0.236 329.5)
XYZxyz(26.9853, 13.4934, 42.2491)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B418B0 #18B41C
analogous
#6A18B4 #B418B0 #B41862
triadic
#B418B0 #B0B418 #18B0B4
tetradic
#B418B0 #B46A18 #18B41C #1862B4
square
#B418B0 #B46A18 #18B41C #1862B4
split-complementary
#B418B0 #62B418 #18B46A
monochromatic
#480A46 #7E117B #B418B0 #E227DD #E95DE6

Accessibility & contrast

On white

5.68
#B418B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B418B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B418B0
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B418B0#FFFFFF#000000##FFFFFF
##B418B01.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#4E6EAD
Tritanopia (blue-blind)
#BB3669
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b418b0;
/* rgb */ color: rgb(180, 24, 176);
/* oklch */ color: oklch(54.5% 0.236 329.5);
Tailwind
colors: {
  custom: {
    50: '#cf6ec8',
    500: '#b418b0',
    950: '#000000',
  },
}
SCSS
$custom: #b418b0;
$custom-light: #cf6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#b418b0",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 176
  },
  "hsl": {
    "h": 301.538,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.54464,
    "c": 0.23632,
    "h": 329.5
  },
  "luminance": 0.13491
}

Semantic roles & 50–950 ramp

primary
#B418B0
secondary
#5BCD5E
accent
#F33A35
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B418B0

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

Preview Lab → · Contrast checker → · Palette generator →

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