#B417A8#B417A8

#B417A8 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 54.0% C 0.231 H 332.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B417A8
RGBrgb(180, 23, 168)
HSLhsl(305, 77%, 40%)
HSVhsv(305, 87%, 71%)
CMYKcmyk(0%, 87.2%, 6.7%, 29.4%)
CIE-LABlab(42.98, 71.16, -39.36)
CIE-LCHlch(42.98, 81.32, 331.05°)
OKLaboklab(53.95% 0.2044 -0.1086)
OKLCHoklch(53.95% 0.231 332)
XYZxyz(26.1968, 13.1456, 38.1958)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B417A8 #17B423
analogous
#7217B4 #B417A8 #B4175A
triadic
#B417A8 #A8B417 #17A8B4
tetradic
#B417A8 #B47217 #17B423 #175AB4
square
#B417A8 #B47217 #17B423 #175AB4
split-complementary
#B417A8 #5AB417 #17B472
monochromatic
#470943 #7E1075 #B417A8 #E325D5 #EA5BDF

Accessibility & contrast

On white

5.79
#B417A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B417A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B417A8
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B417A8#FFFFFF#000000##FFFFFF
##B417A81.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#536DA5
Tritanopia (blue-blind)
#BC3064
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b417a8;
/* rgb */ color: rgb(180, 23, 168);
/* oklch */ color: oklch(54.0% 0.231 332.0);
Tailwind
colors: {
  custom: {
    50: '#cf6ec2',
    500: '#b417a8',
    950: '#000000',
  },
}
SCSS
$custom: #b417a8;
$custom-light: #cf6ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#b417a8",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 168
  },
  "hsl": {
    "h": 304.586,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53952,
    "c": 0.23145,
    "h": 332
  },
  "luminance": 0.13143
}

Semantic roles & 50–950 ramp

primary
#B417A8
secondary
#59CE62
accent
#F44334
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140812
muted
#837B81

Preview Lab

Preview with #B417A8

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

Preview Lab → · Contrast checker → · Palette generator →

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