#BA7FBB#BA7FBB

#BA7FBB is a light, moderate purple. Relative luminance 0.292; OKLCH L 67.6% C 0.109 H 326.1°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#BA7FBB
RGBrgb(186, 127, 187)
HSLhsl(299, 31%, 62%)
HSVhsv(299, 32%, 73%)
CMYKcmyk(0.5%, 32.1%, 0%, 26.7%)
CIE-LABlab(60.96, 32.71, -22.32)
CIE-LCHlch(60.96, 39.60, 325.69°)
OKLaboklab(67.65% 0.0902 -0.0606)
OKLCHoklch(67.65% 0.109 326.1)
XYZxyz(36.8079, 29.2070, 50.7027)
Luminance0.2921 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FBB #80BB7F
analogous
#9C7FBB #BA7FBB #BB7F9E
triadic
#BA7FBB #BBBA7F #7FBBBA
tetradic
#BA7FBB #BB9C7F #80BB7F #7F9EBB
square
#BA7FBB #BB9C7F #80BB7F #7F9EBB
split-complementary
#BA7FBB #9EBB7F #7FBB9C
monochromatic
#7C427D #A458A5 #BA7FBB #D0A7D0 #E5CFE5

Accessibility & contrast

On white

3.07
#BA7FBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#BA7FBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7FBB
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FBB#FFFFFF#000000##000000
##BA7FBB1.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B8EBD
Deuteranopia (green-blind)
#8996B9
Tritanopia (blue-blind)
#BD8495
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba7fbb;
/* rgb */ color: rgb(186, 127, 187);
/* oklch */ color: oklch(67.6% 0.109 326.1);
Tailwind
colors: {
  custom: {
    50: '#cfa5cf',
    500: '#ba7fbb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fbb;
$custom-light: #cfa5cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fbb",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 187
  },
  "hsl": {
    "h": 299,
    "s": 30.612,
    "l": 61.569
  },
  "oklch": {
    "l": 0.67649,
    "c": 0.10867,
    "h": 326.1
  },
  "luminance": 0.29206
}

Semantic roles & 50–950 ramp

primary
#BA7FBB
secondary
#C0D6C0
accent
#A93C3E
background
#FCFAFC
surface
#F9F4F9
border
#D2CED2
text
#140F14
muted
#827F82

Preview Lab

Preview with #BA7FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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