#BA74BD#BA74BD

#BA74BD is a light, vivid purple. Relative luminance 0.266; OKLCH L 65.9% C 0.130 H 325.5°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#BA74BD
RGBrgb(186, 116, 189)
HSLhsl(298, 36%, 60%)
HSVhsv(298, 39%, 74%)
CMYKcmyk(1.6%, 38.6%, 0%, 25.9%)
CIE-LABlab(58.61, 39.10, -27.08)
CIE-LCHlch(58.61, 47.57, 325.29°)
OKLaboklab(65.9% 0.1075 -0.0739)
OKLCHoklch(65.9% 0.13 325.5)
XYZxyz(35.6796, 26.6055, 51.3902)
Luminance0.2660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74BD #77BD74
analogous
#9574BD #BA74BD #BD749C
triadic
#BA74BD #BDBA74 #74BDBA
tetradic
#BA74BD #BD9574 #77BD74 #749CBD
square
#BA74BD #BD9574 #77BD74 #749CBD
split-complementary
#BA74BD #9CBD74 #74BD95
monochromatic
#793B7C #A24EA5 #BA74BD #CF9DD1 #E3C7E4

Accessibility & contrast

On white

3.32
#BA74BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#BA74BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74BD
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74BD#FFFFFF#000000##000000
##BA74BD1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D87C0
Deuteranopia (green-blind)
#8090BB
Tritanopia (blue-blind)
#BE7B90
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba74bd;
/* rgb */ color: rgb(186, 116, 189);
/* oklch */ color: oklch(65.9% 0.130 325.5);
Tailwind
colors: {
  custom: {
    50: '#d09dd1',
    500: '#ba74bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba74bd;
$custom-light: #d09dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74bd",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 189
  },
  "hsl": {
    "h": 297.534,
    "s": 35.61,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65895,
    "c": 0.13043,
    "h": 325.5
  },
  "luminance": 0.26604
}

Semantic roles & 50–950 ramp

primary
#BA74BD
secondary
#B9D5B8
accent
#CC5C61
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140E14
muted
#827E82

Preview Lab

Preview with #BA74BD

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

Preview Lab → · Contrast checker → · Palette generator →

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