#BA7EC2#BA7EC2

#BA7EC2 is a light, moderate purple. Relative luminance 0.293; OKLCH L 67.8% C 0.118 H 322.6°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#BA7EC2
RGBrgb(186, 126, 194)
HSLhsl(293, 36%, 63%)
HSVhsv(293, 35%, 76%)
CMYKcmyk(4.1%, 35.1%, 0%, 23.9%)
CIE-LABlab(61.01, 34.62, -26.22)
CIE-LCHlch(61.01, 43.43, 322.86°)
OKLaboklab(67.77% 0.0936 -0.0715)
OKLCHoklch(67.77% 0.118 322.6)
XYZxyz(37.4471, 29.2571, 54.7031)
Luminance0.2926 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EC2 #86C27E
analogous
#987EC2 #BA7EC2 #C27EA8
triadic
#BA7EC2 #C2BA7E #7EC2BA
tetradic
#BA7EC2 #C2987E #86C27E #7EA8C2
square
#BA7EC2 #C2987E #86C27E #7EA8C2
split-complementary
#BA7EC2 #A8C27E #7EC298
monochromatic
#7E3F86 #A454AE #BA7EC2 #D0A8D6 #E6D1E9

Accessibility & contrast

On white

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

On black

6.85
#BA7EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7EC2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EC2#FFFFFF#000000##000000
##BA7EC21.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#778FC5
Deuteranopia (green-blind)
#8696C0
Tritanopia (blue-blind)
#BC8597
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba7ec2;
/* rgb */ color: rgb(186, 126, 194);
/* oklch */ color: oklch(67.8% 0.118 322.6);
Tailwind
colors: {
  custom: {
    50: '#d0a4d4',
    500: '#ba7ec2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ec2;
$custom-light: #d0a4d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ec2",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 292.941,
    "s": 35.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.67771,
    "c": 0.11781,
    "h": 322.6
  },
  "luminance": 0.29256
}

Semantic roles & 50–950 ramp

primary
#BA7EC2
secondary
#C4DAC2
accent
#AF3745
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#140F14
muted
#827F83

Preview Lab

Preview with #BA7EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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