#BA7FC2#BA7FC2

#BA7FC2 is a light, moderate purple. Relative luminance 0.295; OKLCH L 67.9% C 0.116 H 322.5°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#BA7FC2
RGBrgb(186, 127, 194)
HSLhsl(293, 35%, 63%)
HSVhsv(293, 35%, 76%)
CMYKcmyk(4.1%, 34.5%, 0%, 23.9%)
CIE-LABlab(61.23, 34.07, -25.88)
CIE-LCHlch(61.23, 42.78, 322.78°)
OKLaboklab(67.94% 0.0921 -0.0706)
OKLCHoklch(67.94% 0.116 322.5)
XYZxyz(37.5756, 29.5141, 54.7459)
Luminance0.2951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FC2 #87C27F
analogous
#987FC2 #BA7FC2 #C27FA8
triadic
#BA7FC2 #C2BA7F #7FC2BA
tetradic
#BA7FC2 #C2987F #87C27F #7FA8C2
square
#BA7FC2 #C2987F #87C27F #7FA8C2
split-complementary
#BA7FC2 #A8C27F #7FC298
monochromatic
#7E4087 #A456AE #BA7FC2 #D0A8D6 #E7D2EA

Accessibility & contrast

On white

3.04
#BA7FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#BA7FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7FC2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FC2#FFFFFF#000000##000000
##BA7FC21.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#788FC5
Deuteranopia (green-blind)
#8696C0
Tritanopia (blue-blind)
#BC8698
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7fc2;
/* rgb */ color: rgb(186, 127, 194);
/* oklch */ color: oklch(67.9% 0.116 322.5);
Tailwind
colors: {
  custom: {
    50: '#d0a5d4',
    500: '#ba7fc2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fc2;
$custom-light: #d0a5d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fc2",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 194
  },
  "hsl": {
    "h": 292.836,
    "s": 35.45,
    "l": 62.941
  },
  "oklch": {
    "l": 0.67941,
    "c": 0.11601,
    "h": 322.5
  },
  "luminance": 0.29513
}

Semantic roles & 50–950 ramp

primary
#BA7FC2
secondary
#C5DAC2
accent
#AE3745
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#140F14
muted
#827F83

Preview Lab

Preview with #BA7FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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