#B417A6#B417A6

#B417A6 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.8% C 0.230 H 332.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#B417A6
RGBrgb(180, 23, 166)
HSLhsl(305, 77%, 40%)
HSVhsv(305, 87%, 71%)
CMYKcmyk(0%, 87.2%, 7.8%, 29.4%)
CIE-LABlab(42.87, 70.87, -38.34)
CIE-LCHlch(42.87, 80.58, 331.59°)
OKLaboklab(53.84% 0.2044 -0.1056)
OKLCHoklch(53.84% 0.23 332.7)
XYZxyz(26.0119, 13.0716, 37.2221)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B417A6 #17B425
analogous
#7317B4 #B417A6 #B41758
triadic
#B417A6 #A6B417 #17A6B4
tetradic
#B417A6 #B47317 #17B425 #1758B4
square
#B417A6 #B47317 #17B425 #1758B4
split-complementary
#B417A6 #58B417 #17B473
monochromatic
#470942 #7E1074 #B417A6 #E325D2 #EA5BDD

Accessibility & contrast

On white

5.81
#B417A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B417A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B417A6
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B417A6#FFFFFF#000000##FFFFFF
##B417A61.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0158A9
Deuteranopia (green-blind)
#546DA3
Tritanopia (blue-blind)
#BC2F63
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b417a6;
/* rgb */ color: rgb(180, 23, 166);
/* oklch */ color: oklch(53.8% 0.230 332.7);
Tailwind
colors: {
  custom: {
    50: '#cf6dc1',
    500: '#b417a6',
    950: '#000000',
  },
}
SCSS
$custom: #b417a6;
$custom-light: #cf6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b417a6",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 166
  },
  "hsl": {
    "h": 305.35,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53838,
    "c": 0.23011,
    "h": 332.7
  },
  "luminance": 0.13069
}

Semantic roles & 50–950 ramp

primary
#B417A6
secondary
#59CE64
accent
#F44534
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B417A6

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

Preview Lab → · Contrast checker → · Palette generator →

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