#BA7FA2#BA7FA2

#BA7FA2 is a light, moderate pink. Relative luminance 0.282; OKLCH L 66.7% C 0.086 H 343.3°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#BA7FA2
RGBrgb(186, 127, 162)
HSLhsl(324, 30%, 61%)
HSVhsv(324, 32%, 73%)
CMYKcmyk(0%, 31.7%, 12.9%, 27.1%)
CIE-LABlab(60.09, 28.19, -9.38)
CIE-LCHlch(60.09, 29.72, 341.59°)
OKLaboklab(66.7% 0.0826 -0.0247)
OKLCHoklch(66.7% 0.086 343.3)
XYZxyz(34.3607, 28.2281, 37.8141)
Luminance0.2823 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FA2 #7FBA97
analogous
#B57FBA #BA7FA2 #BA7F85
triadic
#BA7FA2 #A2BA7F #7FA2BA
tetradic
#BA7FA2 #BAB57F #7FBA97 #7F85BA
square
#BA7FA2 #BAB57F #7FBA97 #7F85BA
split-complementary
#BA7FA2 #85BA7F #7FBAB5
monochromatic
#7C4365 #A45885 #BA7FA2 #CFA7BF #E5CFDC

Accessibility & contrast

On white

3.16
#BA7FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#BA7FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7FA2
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FA2#FFFFFF#000000##000000
##BA7FA21.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#828BA3
Deuteranopia (green-blind)
#9094A0
Tritanopia (blue-blind)
#C17F8B
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba7fa2;
/* rgb */ color: rgb(186, 127, 162);
/* oklch */ color: oklch(66.7% 0.086 343.3);
Tailwind
colors: {
  custom: {
    50: '#cfa5bd',
    500: '#ba7fa2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fa2;
$custom-light: #cfa5bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fa2",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 162
  },
  "hsl": {
    "h": 324.407,
    "s": 29.949,
    "l": 61.373
  },
  "oklch": {
    "l": 0.667,
    "c": 0.08622,
    "h": 343.3
  },
  "luminance": 0.28226
}

Semantic roles & 50–950 ramp

primary
#BA7FA2
secondary
#BFD5C8
accent
#A9693D
background
#FCFAFB
surface
#F9F4F6
border
#D2CED0
text
#140F12
muted
#827F81

Preview Lab

Preview with #BA7FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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