#BF40A8#BF40A8

#BF40A8 is a mid, vivid pink. Relative luminance 0.176; OKLCH L 58.6% C 0.198 H 335.8°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BF40A8
RGBrgb(191, 64, 168)
HSLhsl(311, 50%, 50%)
HSVhsv(311, 66%, 75%)
CMYKcmyk(0%, 66.5%, 12%, 25.1%)
CIE-LABlab(48.97, 61.83, -29.80)
CIE-LCHlch(48.97, 68.64, 334.26°)
OKLaboklab(58.61% 0.1807 -0.0811)
OKLCHoklch(58.61% 0.198 335.8)
XYZxyz(30.3875, 17.5729, 38.8297)
Luminance0.1757 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF40A8 #40BF57
analogous
#9640BF #BF40A8 #BF4069
triadic
#BF40A8 #A8BF40 #40A8BF
tetradic
#BF40A8 #BF9640 #40BF57 #4069BF
square
#BF40A8 #BF9640 #40BF57 #4069BF
split-complementary
#BF40A8 #69BF40 #40BF96
monochromatic
#632157 #913180 #BF40A8 #CE6EBD #DE9CD2

Accessibility & contrast

On white

4.65
#BF40A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#BF40A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BF40A8
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF40A8#FFFFFF#000000##FFFFFF
##BF40A81.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4168AB
Deuteranopia (green-blind)
#6B7BA5
Tritanopia (blue-blind)
#C8486E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #bf40a8;
/* rgb */ color: rgb(191, 64, 168);
/* oklch */ color: oklch(58.6% 0.198 335.8);
Tailwind
colors: {
  custom: {
    50: '#d67ec2',
    500: '#bf40a8',
    950: '#000000',
  },
}
SCSS
$custom: #bf40a8;
$custom-light: #d67ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#bf40a8",
  "rgb": {
    "r": 191,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 310.866,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.5861,
    "c": 0.19807,
    "h": 335.8
  },
  "luminance": 0.1757
}

Semantic roles & 50–950 ramp

primary
#BF40A8
secondary
#91CA9B
accent
#D9684E
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #BF40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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