#B418A2#B418A2

#B418A2 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.7% C 0.227 H 334.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#B418A2
RGBrgb(180, 24, 162)
HSLhsl(307, 76%, 40%)
HSVhsv(307, 87%, 71%)
CMYKcmyk(0%, 86.7%, 10%, 29.4%)
CIE-LABlab(42.71, 70.12, -36.20)
CIE-LCHlch(42.71, 78.91, 332.70°)
OKLaboklab(53.66% 0.2039 -0.0994)
OKLCHoklch(53.66% 0.227 334)
XYZxyz(25.6709, 12.9676, 35.3264)
Luminance0.1296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B418A2 #18B42A
analogous
#7818B4 #B418A2 #B41854
triadic
#B418A2 #A2B418 #18A2B4
tetradic
#B418A2 #B47818 #18B42A #1854B4
square
#B418A2 #B47818 #18B42A #1854B4
split-complementary
#B418A2 #54B418 #18B478
monochromatic
#480A41 #7E1171 #B418A2 #E227CD #E95DD9

Accessibility & contrast

On white

5.84
#B418A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B418A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B418A2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B418A2#FFFFFF#000000##FFFFFF
##B418A21.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1057A5
Deuteranopia (green-blind)
#566C9F
Tritanopia (blue-blind)
#BD2D61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b418a2;
/* rgb */ color: rgb(180, 24, 162);
/* oklch */ color: oklch(53.7% 0.227 334.0);
Tailwind
colors: {
  custom: {
    50: '#cf6ebe',
    500: '#b418a2',
    950: '#000000',
  },
}
SCSS
$custom: #b418a2;
$custom-light: #cf6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#b418a2",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 162
  },
  "hsl": {
    "h": 306.923,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.53656,
    "c": 0.22686,
    "h": 334
  },
  "luminance": 0.12965
}

Semantic roles & 50–950 ramp

primary
#B418A2
secondary
#5BCD68
accent
#F34B35
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B418A2

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

Preview Lab → · Contrast checker → · Palette generator →

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