#BA7FB2#BA7FB2

#BA7FB2 is a light, moderate purple. Relative luminance 0.288; OKLCH L 67.3% C 0.100 H 331.5°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#BA7FB2
RGBrgb(186, 127, 178)
HSLhsl(308, 30%, 61%)
HSVhsv(308, 32%, 73%)
CMYKcmyk(0%, 31.7%, 4.3%, 27.1%)
CIE-LABlab(60.63, 31.02, -17.71)
CIE-LCHlch(60.63, 35.72, 330.28°)
OKLaboklab(67.29% 0.0877 -0.0477)
OKLCHoklch(67.29% 0.1 331.5)
XYZxyz(35.8744, 28.8337, 45.7866)
Luminance0.2883 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FB2 #7FBA87
analogous
#A57FBA #BA7FB2 #BA7F95
triadic
#BA7FB2 #B2BA7F #7FB2BA
tetradic
#BA7FB2 #BAA57F #7FBA87 #7F95BA
square
#BA7FB2 #BAA57F #7FBA87 #7F95BA
split-complementary
#BA7FB2 #95BA7F #7FBAA5
monochromatic
#7C4374 #A45899 #BA7FB2 #CFA7CA #E5CFE2

Accessibility & contrast

On white

3.10
#BA7FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#BA7FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7FB2
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FB2#FFFFFF#000000##000000
##BA7FB21.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E8DB4
Deuteranopia (green-blind)
#8C95B0
Tritanopia (blue-blind)
#BF8291
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba7fb2;
/* rgb */ color: rgb(186, 127, 178);
/* oklch */ color: oklch(67.3% 0.100 331.5);
Tailwind
colors: {
  custom: {
    50: '#cfa5c9',
    500: '#ba7fb2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fb2;
$custom-light: #cfa5c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fb2",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 178
  },
  "hsl": {
    "h": 308.136,
    "s": 29.949,
    "l": 61.373
  },
  "oklch": {
    "l": 0.6729,
    "c": 0.09979,
    "h": 331.5
  },
  "luminance": 0.28832
}

Semantic roles & 50–950 ramp

primary
#BA7FB2
secondary
#BFD5C2
accent
#A94B3D
background
#FCFAFC
surface
#F9F4F8
border
#D2CED1
text
#140F13
muted
#827F82

Preview Lab

Preview with #BA7FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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