#B417AF#B417AF

#B417AF is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.4% C 0.236 H 329.8°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#B417AF
RGBrgb(180, 23, 175)
HSLhsl(302, 77%, 40%)
HSVhsv(302, 87%, 71%)
CMYKcmyk(0%, 87.2%, 2.8%, 29.4%)
CIE-LABlab(43.38, 72.19, -42.89)
CIE-LCHlch(43.38, 83.97, 329.29°)
OKLaboklab(54.36% 0.2041 -0.1188)
OKLCHoklch(54.36% 0.236 329.8)
XYZxyz(26.8665, 13.4135, 41.7232)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B417AF #17B41C
analogous
#6B17B4 #B417AF #B41760
triadic
#B417AF #AFB417 #17AFB4
tetradic
#B417AF #B46B17 #17B41C #1760B4
square
#B417AF #B46B17 #17B41C #1760B4
split-complementary
#B417AF #60B417 #17B46B
monochromatic
#470945 #7E107A #B417AF #E325DD #EA5BE6

Accessibility & contrast

On white

5.70
#B417AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B417AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B417AF
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B417AF#FFFFFF#000000##FFFFFF
##B417AF1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#4F6DAC
Tritanopia (blue-blind)
#BB3568
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b417af;
/* rgb */ color: rgb(180, 23, 175);
/* oklch */ color: oklch(54.4% 0.236 329.8);
Tailwind
colors: {
  custom: {
    50: '#cf6ec7',
    500: '#b417af',
    950: '#000000',
  },
}
SCSS
$custom: #b417af;
$custom-light: #cf6ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#b417af",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 175
  },
  "hsl": {
    "h": 301.911,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.54362,
    "c": 0.23619,
    "h": 329.8
  },
  "luminance": 0.13411
}

Semantic roles & 50–950 ramp

primary
#B417AF
secondary
#59CE5D
accent
#F43A34
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B417AF

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

Preview Lab → · Contrast checker → · Palette generator →

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