#BA7FD2#BA7FD2

#BA7FD2 is a light, vivid purple. Relative luminance 0.303; OKLCH L 68.7% C 0.134 H 315.7°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#BA7FD2
RGBrgb(186, 127, 210)
HSLhsl(283, 48%, 66%)
HSVhsv(283, 40%, 82%)
CMYKcmyk(11.4%, 39.5%, 0%, 17.6%)
CIE-LABlab(61.89, 37.31, -33.87)
CIE-LCHlch(61.89, 50.39, 317.76°)
OKLaboklab(68.65% 0.0958 -0.0934)
OKLCHoklch(68.65% 0.134 315.7)
XYZxyz(39.4702, 30.2719, 64.7241)
Luminance0.3027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FD2 #97D27F
analogous
#907FD2 #BA7FD2 #D27FC0
triadic
#BA7FD2 #D2BA7F #7FD2BA
tetradic
#BA7FD2 #D2907F #97D27F #7FC0D2
square
#BA7FD2 #D2907F #97D27F #7FC0D2
split-complementary
#BA7FD2 #C0D27F #7FD290
monochromatic
#81389F #A252C2 #BA7FD2 #D2ACE2 #EBDAF2

Accessibility & contrast

On white

2.98
#BA7FD2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#BA7FD2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FD2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FD2#FFFFFF#000000##000000
##BA7FD21.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7192D5
Deuteranopia (green-blind)
#8097D0
Tritanopia (blue-blind)
#B98A9F
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba7fd2;
/* rgb */ color: rgb(186, 127, 210);
/* oklch */ color: oklch(68.7% 0.134 315.7);
Tailwind
colors: {
  custom: {
    50: '#d0a5e0',
    500: '#ba7fd2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fd2;
$custom-light: #d0a5e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fd2",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 210
  },
  "hsl": {
    "h": 282.651,
    "s": 47.977,
    "l": 66.078
  },
  "oklch": {
    "l": 0.68652,
    "c": 0.13374,
    "h": 315.7
  },
  "luminance": 0.30271
}

Semantic roles & 50–950 ramp

primary
#BA7FD2
secondary
#D1E4C9
accent
#BB2A54
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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