#BA74BC#BA74BC

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

Color values

HEX#BA74BC
RGBrgb(186, 116, 188)
HSLhsl(298, 35%, 60%)
HSVhsv(298, 38%, 74%)
CMYKcmyk(1.1%, 38.3%, 0%, 26.3%)
CIE-LABlab(58.57, 38.91, -26.58)
CIE-LCHlch(58.57, 47.12, 325.67°)
OKLaboklab(65.85% 0.1072 -0.0725)
OKLCHoklch(65.85% 0.129 326)
XYZxyz(35.5714, 26.5622, 50.8205)
Luminance0.2656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74BC #76BC74
analogous
#9674BC #BA74BC #BC749A
triadic
#BA74BC #BCBA74 #74BCBA
tetradic
#BA74BC #BC9674 #76BC74 #749ABC
square
#BA74BC #BC9674 #76BC74 #749ABC
split-complementary
#BA74BC #9ABC74 #74BC96
monochromatic
#793B7B #A14FA4 #BA74BC #CE9DD0 #E3C7E4

Accessibility & contrast

On white

3.33
#BA74BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#BA74BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74BC
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74BC#FFFFFF#000000##000000
##BA74BC1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E87BF
Deuteranopia (green-blind)
#8090BA
Tritanopia (blue-blind)
#BE7B8F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba74bc;
/* rgb */ color: rgb(186, 116, 188);
/* oklch */ color: oklch(65.9% 0.129 326.0);
Tailwind
colors: {
  custom: {
    50: '#d09dd0',
    500: '#ba74bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba74bc;
$custom-light: #d09dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74bc",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 188
  },
  "hsl": {
    "h": 298.333,
    "s": 34.951,
    "l": 59.608
  },
  "oklch": {
    "l": 0.65851,
    "c": 0.12943,
    "h": 326
  },
  "luminance": 0.26561
}

Semantic roles & 50–950 ramp

primary
#BA74BC
secondary
#B9D4B8
accent
#CB5D60
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140E14
muted
#827E82

Preview Lab

Preview with #BA74BC

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

Preview Lab → · Contrast checker → · Palette generator →

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