#BA74DC#BA74DC

#BA74DC is a light, vivid purple. Relative luminance 0.281; OKLCH L 67.4% C 0.164 H 313.8°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#BA74DC
RGBrgb(186, 116, 220)
HSLhsl(280, 60%, 66%)
HSVhsv(280, 47%, 86%)
CMYKcmyk(15.5%, 47.3%, 0%, 13.7%)
CIE-LABlab(59.98, 45.36, -42.47)
CIE-LCHlch(59.98, 62.14, 316.88°)
OKLaboklab(67.37% 0.1132 -0.1181)
OKLCHoklch(67.37% 0.164 313.8)
XYZxyz(39.4112, 28.0981, 71.0436)
Luminance0.2810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74DC #96DC74
analogous
#8674DC #BA74DC #DC74CA
triadic
#BA74DC #DCBA74 #74DCBA
tetradic
#BA74DC #DC8674 #96DC74 #74CADC
square
#BA74DC #DC8674 #96DC74 #74CADC
split-complementary
#BA74DC #CADC74 #74DC86
monochromatic
#812BAB #A243D0 #BA74DC #D2A5E8 #EBD6F5

Accessibility & contrast

On white

3.17
#BA74DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#BA74DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74DC
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74DC#FFFFFF#000000##000000
##BA74DC1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8DE0
Deuteranopia (green-blind)
#7292D9
Tritanopia (blue-blind)
#B7849E
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba74dc;
/* rgb */ color: rgb(186, 116, 220);
/* oklch */ color: oklch(67.4% 0.164 313.8);
Tailwind
colors: {
  custom: {
    50: '#d19ee7',
    500: '#ba74dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba74dc;
$custom-light: #d19ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74dc",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 220
  },
  "hsl": {
    "h": 280.385,
    "s": 59.77,
    "l": 65.882
  },
  "oklch": {
    "l": 0.67369,
    "c": 0.16355,
    "h": 313.8
  },
  "luminance": 0.28097
}

Semantic roles & 50–950 ramp

primary
#BA74DC
secondary
#D0E7C5
accent
#C71E55
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA74DC

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

Preview Lab → · Contrast checker → · Palette generator →

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