#BA7FA7#BA7FA7

#BA7FA7 is a light, moderate pink. Relative luminance 0.284; OKLCH L 66.9% C 0.090 H 339.3°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#BA7FA7
RGBrgb(186, 127, 167)
HSLhsl(319, 30%, 61%)
HSVhsv(319, 32%, 73%)
CMYKcmyk(0%, 31.7%, 10.2%, 27.1%)
CIE-LABlab(60.26, 29.05, -12.00)
CIE-LCHlch(60.26, 31.43, 337.55°)
OKLaboklab(66.88% 0.0843 -0.0319)
OKLCHoklch(66.88% 0.09 339.3)
XYZxyz(34.8140, 28.4095, 40.2015)
Luminance0.2841 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FA7 #7FBA92
analogous
#B07FBA #BA7FA7 #BA7F8A
triadic
#BA7FA7 #A7BA7F #7FA7BA
tetradic
#BA7FA7 #BAB07F #7FBA92 #7F8ABA
square
#BA7FA7 #BAB07F #7FBA92 #7F8ABA
split-complementary
#BA7FA7 #8ABA7F #7FBAB0
monochromatic
#7C4369 #A4588B #BA7FA7 #CFA7C2 #E5CFDE

Accessibility & contrast

On white

3.14
#BA7FA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#BA7FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7FA7
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FA7#FFFFFF#000000##000000
##BA7FA71.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#818CA9
Deuteranopia (green-blind)
#8F95A5
Tritanopia (blue-blind)
#C1808D
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba7fa7;
/* rgb */ color: rgb(186, 127, 167);
/* oklch */ color: oklch(66.9% 0.090 339.3);
Tailwind
colors: {
  custom: {
    50: '#cfa5c1',
    500: '#ba7fa7',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fa7;
$custom-light: #cfa5c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fa7",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 167
  },
  "hsl": {
    "h": 319.322,
    "s": 29.949,
    "l": 61.373
  },
  "oklch": {
    "l": 0.66878,
    "c": 0.09009,
    "h": 339.3
  },
  "luminance": 0.28408
}

Semantic roles & 50–950 ramp

primary
#BA7FA7
secondary
#BFD5C6
accent
#A9603D
background
#FCFAFB
surface
#F9F4F7
border
#D2CED0
text
#140F12
muted
#827F81

Preview Lab

Preview with #BA7FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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