#BA74EF#BA74EF

#BA74EF is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.4% C 0.185 H 308.6°. Best body text is #000000 at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#BA74EF
RGBrgb(186, 116, 239)
HSLhsl(274, 79%, 70%)
HSVhsv(274, 51%, 94%)
CMYKcmyk(22.2%, 51.5%, 0%, 6.3%)
CIE-LABlab(60.92, 49.48, -51.57)
CIE-LCHlch(60.92, 71.47, 313.82°)
OKLaboklab(68.38% 0.1152 -0.1445)
OKLCHoklch(68.38% 0.185 308.6)
XYZxyz(42.0720, 29.1625, 85.0572)
Luminance0.2916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74EF #A9EF74
analogous
#7C74EF #BA74EF #EF74E7
triadic
#BA74EF #EFBA74 #74EFBA
tetradic
#BA74EF #EF7C74 #A9EF74 #74E7EF
square
#BA74EF #EF7C74 #A9EF74 #74E7EF
split-complementary
#BA74EF #E7EF74 #74EF7C
monochromatic
#8118D1 #9F3DE9 #BA74EF #D5ABF5 #F0E2FC

Accessibility & contrast

On white

3.07
#BA74EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.83
#BA74EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74EF
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74EF#FFFFFF#000000##000000
##BA74EF1.003.076.836.83
#FFFFFF3.071.0021.0021.00
#0000006.8321.001.001.00
##0000006.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5190F3
Deuteranopia (green-blind)
#6694EC
Tritanopia (blue-blind)
#B389A7
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba74ef;
/* rgb */ color: rgb(186, 116, 239);
/* oklch */ color: oklch(68.4% 0.185 308.6);
Tailwind
colors: {
  custom: {
    50: '#d19ef5',
    500: '#ba74ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba74ef;
$custom-light: #d19ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74ef",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 239
  },
  "hsl": {
    "h": 274.146,
    "s": 79.355,
    "l": 69.608
  },
  "oklch": {
    "l": 0.6838,
    "c": 0.18483,
    "h": 308.6
  },
  "luminance": 0.29162
}

Semantic roles & 50–950 ramp

primary
#BA74EF
secondary
#DDF1CE
accent
#DC0A64
background
#FDF9FF
surface
#FAF2FE
border
#D3CCD6
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA74EF

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

Preview Lab → · Contrast checker → · Palette generator →

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