#BA74CC#BA74CC

#BA74CC is a light, vivid purple. Relative luminance 0.273; OKLCH L 66.6% C 0.146 H 319.2°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#BA74CC
RGBrgb(186, 116, 204)
HSLhsl(288, 46%, 63%)
HSVhsv(288, 43%, 80%)
CMYKcmyk(8.8%, 43.1%, 0%, 20%)
CIE-LABlab(59.24, 42.05, -34.62)
CIE-LCHlch(59.24, 54.46, 320.54°)
OKLaboklab(66.58% 0.1106 -0.0954)
OKLCHoklch(66.58% 0.146 319.2)
XYZxyz(37.3928, 27.2908, 60.4130)
Luminance0.2729 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74CC #86CC74
analogous
#8E74CC #BA74CC #CC74B2
triadic
#BA74CC #CCBA74 #74CCBA
tetradic
#BA74CC #CC8E74 #86CC74 #74B2CC
square
#BA74CC #CC8E74 #86CC74 #74B2CC
split-complementary
#BA74CC #B2CC74 #74CC8E
monochromatic
#7E3591 #A447BC #BA74CC #D0A1DC #E6CEED

Accessibility & contrast

On white

3.25
#BA74CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#BA74CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74CC
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74CC#FFFFFF#000000##000000
##BA74CC1.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#678ACF
Deuteranopia (green-blind)
#7A91C9
Tritanopia (blue-blind)
#BB7F96
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba74cc;
/* rgb */ color: rgb(186, 116, 204);
/* oklch */ color: oklch(66.6% 0.146 319.2);
Tailwind
colors: {
  custom: {
    50: '#d09edc',
    500: '#ba74cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba74cc;
$custom-light: #d09edc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74cc",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 204
  },
  "hsl": {
    "h": 287.727,
    "s": 46.316,
    "l": 62.745
  },
  "oklch": {
    "l": 0.6658,
    "c": 0.14606,
    "h": 319.2
  },
  "luminance": 0.2729
}

Semantic roles & 50–950 ramp

primary
#BA74CC
secondary
#C4DEBE
accent
#BA2C49
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#140E15
muted
#827E83

Preview Lab

Preview with #BA74CC

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

Preview Lab → · Contrast checker → · Palette generator →

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