#BA74DF#BA74DF

#BA74DF is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.5% C 0.167 H 312.9°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#BA74DF
RGBrgb(186, 116, 223)
HSLhsl(279, 63%, 66%)
HSVhsv(279, 48%, 87%)
CMYKcmyk(16.6%, 48%, 0%, 12.5%)
CIE-LABlab(60.12, 46.00, -43.93)
CIE-LCHlch(60.12, 63.60, 316.32°)
OKLaboklab(67.52% 0.1136 -0.1223)
OKLCHoklch(67.52% 0.167 312.9)
XYZxyz(39.8121, 28.2585, 73.1549)
Luminance0.2826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74DF #99DF74
analogous
#8574DF #BA74DF #DF74CF
triadic
#BA74DF #DFBA74 #74DFBA
tetradic
#BA74DF #DF8574 #99DF74 #74CFDF
square
#BA74DF #DF8574 #99DF74 #74CFDF
split-complementary
#BA74DF #CFDF74 #74DF85
monochromatic
#8129B0 #A142D4 #BA74DF #D3A6EA #EBD7F6

Accessibility & contrast

On white

3.16
#BA74DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#BA74DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74DF
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74DF#FFFFFF#000000##000000
##BA74DF1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C8DE3
Deuteranopia (green-blind)
#7093DC
Tritanopia (blue-blind)
#B7859F
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba74df;
/* rgb */ color: rgb(186, 116, 223);
/* oklch */ color: oklch(67.5% 0.167 312.9);
Tailwind
colors: {
  custom: {
    50: '#d19ee9',
    500: '#ba74df',
    950: '#000000',
  },
}
SCSS
$custom: #ba74df;
$custom-light: #d19ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74df",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 223
  },
  "hsl": {
    "h": 279.252,
    "s": 62.573,
    "l": 66.471
  },
  "oklch": {
    "l": 0.67523,
    "c": 0.16688,
    "h": 312.9
  },
  "luminance": 0.28258
}

Semantic roles & 50–950 ramp

primary
#BA74DF
secondary
#D2E9C6
accent
#CA1B58
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA74DF

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

Preview Lab → · Contrast checker → · Palette generator →

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