#BA74FD#BA74FD

#BA74FD is a light, highly saturated violet. Relative luminance 0.300; OKLCH L 69.2% C 0.201 H 305.4°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#BA74FD
RGBrgb(186, 116, 253)
HSLhsl(271, 97%, 72%)
HSVhsv(271, 54%, 99%)
CMYKcmyk(26.5%, 54.2%, 0%, 0.8%)
CIE-LABlab(61.67, 52.64, -58.11)
CIE-LCHlch(61.67, 78.40, 312.17°)
OKLaboklab(69.18% 0.1161 -0.1636)
OKLCHoklch(69.18% 0.201 305.4)
XYZxyz(44.2209, 30.0220, 96.3747)
Luminance0.3002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74FD #B7FD74
analogous
#7674FD #BA74FD #FD74FB
triadic
#BA74FD #FDBA74 #74FDBA
tetradic
#BA74FD #FD7674 #B7FD74 #74FBFD
square
#BA74FD #FD7674 #B7FD74 #74FBFD
split-complementary
#BA74FD #FBFD74 #74FD76
monochromatic
#7E03F3 #9C38FC #BA74FD #D8B0FE #F0E1FF

Accessibility & contrast

On white

3.00
#BA74FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#BA74FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA74FD
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74FD#FFFFFF#000000##000000
##BA74FD1.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4493FF
Deuteranopia (green-blind)
#5C95FA
Tritanopia (blue-blind)
#AF8EAE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba74fd;
/* rgb */ color: rgb(186, 116, 253);
/* oklch */ color: oklch(69.2% 0.201 305.4);
Tailwind
colors: {
  custom: {
    50: '#d29eff',
    500: '#ba74fd',
    950: '#000000',
  },
}
SCSS
$custom: #ba74fd;
$custom-light: #d29eff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74fd",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 253
  },
  "hsl": {
    "h": 270.657,
    "s": 97.163,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69175,
    "c": 0.20063,
    "h": 305.4
  },
  "luminance": 0.30022
}

Semantic roles & 50–950 ramp

primary
#BA74FD
secondary
#E5F7D4
accent
#E60070
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140F18
muted
#837E86

Preview Lab

Preview with #BA74FD

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

Preview Lab → · Contrast checker → · Palette generator →

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