#BA7BB7#BA7BB7

#BA7BB7 is a light, moderate purple. Relative luminance 0.280; OKLCH L 66.8% C 0.112 H 328.4°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#BA7BB7
RGBrgb(186, 123, 183)
HSLhsl(303, 31%, 61%)
HSVhsv(303, 34%, 73%)
CMYKcmyk(0%, 33.9%, 1.6%, 27.1%)
CIE-LABlab(59.91, 34.15, -21.66)
CIE-LCHlch(59.91, 40.44, 327.62°)
OKLaboklab(66.8% 0.0953 -0.0587)
OKLCHoklch(66.8% 0.112 328.4)
XYZxyz(35.8792, 28.0254, 48.3101)
Luminance0.2802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BB7 #7BBA7E
analogous
#9D7BBA #BA7BB7 #BA7B97
triadic
#BA7BB7 #B7BA7B #7BB7BA
tetradic
#BA7BB7 #BA9D7B #7BBA7E #7B97BA
square
#BA7BB7 #BA9D7B #7BBA7E #7B97BA
split-complementary
#BA7BB7 #97BA7B #7BBA9D
monochromatic
#7B4078 #A3559F #BA7BB7 #CFA3CD #E4CBE3

Accessibility & contrast

On white

3.18
#BA7BB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#BA7BB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7BB7
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BB7#FFFFFF#000000##000000
##BA7BB71.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#788BB9
Deuteranopia (green-blind)
#8793B5
Tritanopia (blue-blind)
#BE8091
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba7bb7;
/* rgb */ color: rgb(186, 123, 183);
/* oklch */ color: oklch(66.8% 0.112 328.4);
Tailwind
colors: {
  custom: {
    50: '#d0a2cc',
    500: '#ba7bb7',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bb7;
$custom-light: #d0a2cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bb7",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 183
  },
  "hsl": {
    "h": 302.857,
    "s": 31.343,
    "l": 60.588
  },
  "oklch": {
    "l": 0.66802,
    "c": 0.11191,
    "h": 328.4
  },
  "luminance": 0.28024
}

Semantic roles & 50–950 ramp

primary
#BA7BB7
secondary
#BCD4BE
accent
#AA413B
background
#FCFAFC
surface
#F9F3F9
border
#D2CDD2
text
#140F13
muted
#827F82

Preview Lab

Preview with #BA7BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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