#BA4CD7#BA4CD7

#BA4CD7 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.7% C 0.219 H 318.6°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#BA4CD7
RGBrgb(186, 76, 215)
HSLhsl(287, 63%, 57%)
HSVhsv(287, 65%, 84%)
CMYKcmyk(13.5%, 64.7%, 0%, 15.7%)
CIE-LABlab(52.42, 63.82, -51.63)
CIE-LCHlch(52.42, 82.09, 321.03°)
OKLaboklab(61.74% 0.1639 -0.1445)
OKLCHoklch(61.74% 0.219 318.6)
XYZxyz(35.0982, 20.5158, 66.3880)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4CD7 #69D74C
analogous
#754CD7 #BA4CD7 #D74CAF
triadic
#BA4CD7 #D7BA4C #4CD7BA
tetradic
#BA4CD7 #D7754C #69D74C #4CAFD7
square
#BA4CD7 #D7754C #69D74C #4CAFD7
split-complementary
#BA4CD7 #AFD74C #4CD775
monochromatic
#731F8A #9D2ABC #BA4CD7 #CD7EE2 #E1B0ED

Accessibility & contrast

On white

4.12
#BA4CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#BA4CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4CD7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4CD7#FFFFFF#000000##000000
##BA4CD71.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C76DB
Deuteranopia (green-blind)
#5481D4
Tritanopia (blue-blind)
#BA658B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba4cd7;
/* rgb */ color: rgb(186, 76, 215);
/* oklch */ color: oklch(61.7% 0.219 318.6);
Tailwind
colors: {
  custom: {
    50: '#d285e4',
    500: '#ba4cd7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4cd7;
$custom-light: #d285e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4cd7",
  "rgb": {
    "r": 186,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 287.482,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.6174,
    "c": 0.21852,
    "h": 318.6
  },
  "luminance": 0.20514
}

Semantic roles & 50–950 ramp

primary
#BA4CD7
secondary
#AFDCA3
accent
#E64164
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA4CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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