#BA74DD#BA74DD

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

Color values

HEX#BA74DD
RGBrgb(186, 116, 221)
HSLhsl(280, 61%, 66%)
HSVhsv(280, 48%, 87%)
CMYKcmyk(15.8%, 47.5%, 0%, 13.3%)
CIE-LABlab(60.03, 45.57, -42.96)
CIE-LCHlch(60.03, 62.63, 316.69°)
OKLaboklab(67.42% 0.1133 -0.1195)
OKLCHoklch(67.42% 0.165 313.5)
XYZxyz(39.5441, 28.1513, 71.7432)
Luminance0.2815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74DD #97DD74
analogous
#8574DD #BA74DD #DD74CB
triadic
#BA74DD #DDBA74 #74DDBA
tetradic
#BA74DD #DD8574 #97DD74 #74CBDD
square
#BA74DD #DD8574 #97DD74 #74CBDD
split-complementary
#BA74DD #CBDD74 #74DD85
monochromatic
#812AAC #A243D1 #BA74DD #D2A5E9 #EBD6F5

Accessibility & contrast

On white

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

On black

6.63
#BA74DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74DD
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74DD#FFFFFF#000000##000000
##BA74DD1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8DE1
Deuteranopia (green-blind)
#7192DA
Tritanopia (blue-blind)
#B7849E
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba74dd;
/* rgb */ color: rgb(186, 116, 221);
/* oklch */ color: oklch(67.4% 0.165 313.5);
Tailwind
colors: {
  custom: {
    50: '#d19ee8',
    500: '#ba74dd',
    950: '#000000',
  },
}
SCSS
$custom: #ba74dd;
$custom-light: #d19ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74dd",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 221
  },
  "hsl": {
    "h": 280,
    "s": 60.694,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6742,
    "c": 0.16466,
    "h": 313.5
  },
  "luminance": 0.2815
}

Semantic roles & 50–950 ramp

primary
#BA74DD
secondary
#D1E8C5
accent
#C81D56
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA74DD

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

Preview Lab → · Contrast checker → · Palette generator →

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