#B417A7#B417A7

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

Color values

HEX#B417A7
RGBrgb(180, 23, 167)
HSLhsl(305, 77%, 40%)
HSVhsv(305, 87%, 71%)
CMYKcmyk(0%, 87.2%, 7.2%, 29.4%)
CIE-LABlab(42.93, 71.02, -38.85)
CIE-LCHlch(42.93, 80.95, 331.32°)
OKLaboklab(53.9% 0.2044 -0.1071)
OKLCHoklch(53.9% 0.231 332.3)
XYZxyz(26.1040, 13.1084, 37.7071)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B417A7 #17B424
analogous
#7217B4 #B417A7 #B41759
triadic
#B417A7 #A7B417 #17A7B4
tetradic
#B417A7 #B47217 #17B424 #1759B4
square
#B417A7 #B47217 #17B424 #1759B4
split-complementary
#B417A7 #59B417 #17B472
monochromatic
#470942 #7E1075 #B417A7 #E325D3 #EA5BDE

Accessibility & contrast

On white

5.80
#B417A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B417A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B417A7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B417A7#FFFFFF#000000##FFFFFF
##B417A71.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#536DA4
Tritanopia (blue-blind)
#BC3063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b417a7;
/* rgb */ color: rgb(180, 23, 167);
/* oklch */ color: oklch(53.9% 0.231 332.3);
Tailwind
colors: {
  custom: {
    50: '#cf6ec1',
    500: '#b417a7',
    950: '#000000',
  },
}
SCSS
$custom: #b417a7;
$custom-light: #cf6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b417a7",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 167
  },
  "hsl": {
    "h": 304.968,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53895,
    "c": 0.23078,
    "h": 332.3
  },
  "luminance": 0.13106
}

Semantic roles & 50–950 ramp

primary
#B417A7
secondary
#59CE63
accent
#F44434
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B417A7

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

Preview Lab → · Contrast checker → · Palette generator →

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