#BA74BB#BA74BB

#BA74BB is a light, vivid purple. Relative luminance 0.265; OKLCH L 65.8% C 0.128 H 326.4°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#BA74BB
RGBrgb(186, 116, 187)
HSLhsl(299, 34%, 59%)
HSVhsv(299, 38%, 73%)
CMYKcmyk(0.5%, 38%, 0%, 26.7%)
CIE-LABlab(58.53, 38.72, -26.07)
CIE-LCHlch(58.53, 46.68, 326.05°)
OKLaboklab(65.81% 0.107 -0.071)
OKLCHoklch(65.81% 0.128 326.4)
XYZxyz(35.4640, 26.5192, 50.2547)
Luminance0.2652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74BB #75BB74
analogous
#9774BB #BA74BB #BB7499
triadic
#BA74BB #BBBA74 #74BBBA
tetradic
#BA74BB #BB9774 #75BB74 #7499BB
square
#BA74BB #BB9774 #75BB74 #7499BB
split-complementary
#BA74BB #99BB74 #74BB97
monochromatic
#783B79 #A14FA2 #BA74BB #CE9DCF #E3C6E3

Accessibility & contrast

On white

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

On black

6.30
#BA74BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74BB
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74BB#FFFFFF#000000##000000
##BA74BB1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba74bb;
/* rgb */ color: rgb(186, 116, 187);
/* oklch */ color: oklch(65.8% 0.128 326.4);
Tailwind
colors: {
  custom: {
    50: '#d09dcf',
    500: '#ba74bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba74bb;
$custom-light: #d09dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74bb",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 187
  },
  "hsl": {
    "h": 299.155,
    "s": 34.3,
    "l": 59.412
  },
  "oklch": {
    "l": 0.65808,
    "c": 0.12843,
    "h": 326.4
  },
  "luminance": 0.26518
}

Semantic roles & 50–950 ramp

primary
#BA74BB
secondary
#B8D3B8
accent
#CA5D5F
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140E14
muted
#827E82

Preview Lab

Preview with #BA74BB

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

Preview Lab → · Contrast checker → · Palette generator →

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