#BA74CD#BA74CD

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

Color values

HEX#BA74CD
RGBrgb(186, 116, 205)
HSLhsl(287, 47%, 63%)
HSVhsv(287, 43%, 80%)
CMYKcmyk(9.3%, 43.4%, 0%, 19.6%)
CIE-LABlab(59.29, 42.25, -35.11)
CIE-LCHlch(59.29, 54.94, 320.27°)
OKLaboklab(66.63% 0.1108 -0.0968)
OKLCHoklch(66.63% 0.147 318.8)
XYZxyz(37.5131, 27.3389, 61.0466)
Luminance0.2734 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74CD #87CD74
analogous
#8D74CD #BA74CD #CD74B3
triadic
#BA74CD #CDBA74 #74CDBA
tetradic
#BA74CD #CD8D74 #87CD74 #74B3CD
square
#BA74CD #CD8D74 #87CD74 #74B3CD
split-complementary
#BA74CD #B3CD74 #74CD8D
monochromatic
#7E3592 #A447BD #BA74CD #D0A1DD #E7CEED

Accessibility & contrast

On white

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

On black

6.47
#BA74CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74CD
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74CD#FFFFFF#000000##000000
##BA74CD1.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#668AD0
Deuteranopia (green-blind)
#7991CA
Tritanopia (blue-blind)
#BA8097
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba74cd;
/* rgb */ color: rgb(186, 116, 205);
/* oklch */ color: oklch(66.6% 0.147 318.8);
Tailwind
colors: {
  custom: {
    50: '#d09edc',
    500: '#ba74cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba74cd;
$custom-light: #d09edc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74cd",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 205
  },
  "hsl": {
    "h": 287.191,
    "s": 47.09,
    "l": 62.941
  },
  "oklch": {
    "l": 0.66628,
    "c": 0.14714,
    "h": 318.8
  },
  "luminance": 0.27338
}

Semantic roles & 50–950 ramp

primary
#BA74CD
secondary
#C5DEBE
accent
#BA2B4A
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#140E15
muted
#827E83

Preview Lab

Preview with #BA74CD

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

Preview Lab → · Contrast checker → · Palette generator →

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