#B417A9#B417A9

#B417A9 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.232 H 331.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#B417A9
RGBrgb(180, 23, 169)
HSLhsl(304, 77%, 40%)
HSVhsv(304, 87%, 71%)
CMYKcmyk(0%, 87.2%, 6.1%, 29.4%)
CIE-LABlab(43.04, 71.31, -39.87)
CIE-LCHlch(43.04, 81.69, 330.79°)
OKLaboklab(54.01% 0.2044 -0.11)
OKLCHoklch(54.01% 0.232 331.7)
XYZxyz(26.2903, 13.1830, 38.6884)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B417A9 #17B422
analogous
#7117B4 #B417A9 #B4175A
triadic
#B417A9 #A9B417 #17A9B4
tetradic
#B417A9 #B47117 #17B422 #175AB4
square
#B417A9 #B47117 #17B422 #175AB4
split-complementary
#B417A9 #5AB417 #17B471
monochromatic
#470943 #7E1076 #B417A9 #E325D6 #EA5BE0

Accessibility & contrast

On white

5.78
#B417A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B417A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B417A9
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B417A9#FFFFFF#000000##FFFFFF
##B417A91.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AC
Deuteranopia (green-blind)
#526DA6
Tritanopia (blue-blind)
#BC3164
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b417a9;
/* rgb */ color: rgb(180, 23, 169);
/* oklch */ color: oklch(54.0% 0.232 331.7);
Tailwind
colors: {
  custom: {
    50: '#cf6ec3',
    500: '#b417a9',
    950: '#000000',
  },
}
SCSS
$custom: #b417a9;
$custom-light: #cf6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#b417a9",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 169
  },
  "hsl": {
    "h": 304.204,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5401,
    "c": 0.23212,
    "h": 331.7
  },
  "luminance": 0.13181
}

Semantic roles & 50–950 ramp

primary
#B417A9
secondary
#59CE61
accent
#F44134
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140812
muted
#837B81

Preview Lab

Preview with #B417A9

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

Preview Lab → · Contrast checker → · Palette generator →

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