#BA74ED#BA74ED

#BA74ED is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.3% C 0.183 H 309.1°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#BA74ED
RGBrgb(186, 116, 237)
HSLhsl(275, 77%, 69%)
HSVhsv(275, 51%, 93%)
CMYKcmyk(21.5%, 51.1%, 0%, 7.1%)
CIE-LABlab(60.82, 49.04, -50.62)
CIE-LCHlch(60.82, 70.48, 314.09°)
OKLaboklab(68.27% 0.1151 -0.1417)
OKLCHoklch(68.27% 0.183 309.1)
XYZxyz(41.7782, 29.0449, 83.5097)
Luminance0.2904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74ED #A7ED74
analogous
#7E74ED #BA74ED #ED74E3
triadic
#BA74ED #EDBA74 #74EDBA
tetradic
#BA74ED #ED7E74 #A7ED74 #74E3ED
square
#BA74ED #ED7E74 #A7ED74 #74E3ED
split-complementary
#BA74ED #E3ED74 #74ED7E
monochromatic
#811ACC #9F3EE6 #BA74ED #D5AAF4 #F0E0FB

Accessibility & contrast

On white

3.08
#BA74ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#BA74ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74ED
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74ED#FFFFFF#000000##000000
##BA74ED1.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5290F1
Deuteranopia (green-blind)
#6894EA
Tritanopia (blue-blind)
#B389A6
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba74ed;
/* rgb */ color: rgb(186, 116, 237);
/* oklch */ color: oklch(68.3% 0.183 309.1);
Tailwind
colors: {
  custom: {
    50: '#d19ef3',
    500: '#ba74ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba74ed;
$custom-light: #d19ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74ed",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 237
  },
  "hsl": {
    "h": 274.711,
    "s": 77.07,
    "l": 69.216
  },
  "oklch": {
    "l": 0.6827,
    "c": 0.18257,
    "h": 309.1
  },
  "luminance": 0.29044
}

Semantic roles & 50–950 ramp

primary
#BA74ED
secondary
#DCF0CD
accent
#D90C63
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA74ED

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

Preview Lab → · Contrast checker → · Palette generator →

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