#BA7DD5#BA7DD5

#BA7DD5 is a light, vivid purple. Relative luminance 0.299; OKLCH L 68.5% C 0.141 H 314.9°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#BA7DD5
RGBrgb(186, 125, 213)
HSLhsl(282, 51%, 66%)
HSVhsv(282, 41%, 84%)
CMYKcmyk(12.7%, 41.3%, 0%, 16.5%)
CIE-LABlab(61.58, 39.03, -36.04)
CIE-LCHlch(61.58, 53.12, 317.28°)
OKLaboklab(68.46% 0.0993 -0.0996)
OKLCHoklch(68.46% 0.141 314.9)
XYZxyz(39.5917, 29.9114, 66.6257)
Luminance0.2991 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DD5 #98D57D
analogous
#8E7DD5 #BA7DD5 #D57DC4
triadic
#BA7DD5 #D5BA7D #7DD5BA
tetradic
#BA7DD5 #D58E7D #98D57D #7DC4D5
square
#BA7DD5 #D58E7D #98D57D #7DC4D5
split-complementary
#BA7DD5 #C4D57D #7DD58E
monochromatic
#8135A3 #A14FC6 #BA7DD5 #D3ABE4 #EBDAF3

Accessibility & contrast

On white

3.01
#BA7DD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#BA7DD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7DD5
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DD5#FFFFFF#000000##000000
##BA7DD51.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D91D8
Deuteranopia (green-blind)
#7D96D2
Tritanopia (blue-blind)
#B8899F
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba7dd5;
/* rgb */ color: rgb(186, 125, 213);
/* oklch */ color: oklch(68.5% 0.141 314.9);
Tailwind
colors: {
  custom: {
    50: '#d0a4e2',
    500: '#ba7dd5',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dd5;
$custom-light: #d0a4e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dd5",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 213
  },
  "hsl": {
    "h": 281.591,
    "s": 51.163,
    "l": 66.275
  },
  "oklch": {
    "l": 0.68461,
    "c": 0.14059,
    "h": 314.9
  },
  "luminance": 0.2991
}

Semantic roles & 50–950 ramp

primary
#BA7DD5
secondary
#D1E5C9
accent
#BF2755
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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