#BA74FE#BA74FE

#BA74FE is a light, highly saturated violet. Relative luminance 0.301; OKLCH L 69.2% C 0.202 H 305.1°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#BA74FE
RGBrgb(186, 116, 254)
HSLhsl(270, 99%, 73%)
HSVhsv(270, 54%, 100%)
CMYKcmyk(26.8%, 54.3%, 0%, 0.4%)
CIE-LABlab(61.73, 52.87, -58.57)
CIE-LCHlch(61.73, 78.90, 312.07°)
OKLaboklab(69.23% 0.1161 -0.165)
OKLCHoklch(69.23% 0.202 305.1)
XYZxyz(44.3806, 30.0859, 97.2158)
Luminance0.3009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74FE #B8FE74
analogous
#7574FE #BA74FE #FE74FD
triadic
#BA74FE #FEBA74 #74FEBA
tetradic
#BA74FE #FE7574 #B8FE74 #74FDFE
square
#BA74FE #FE7574 #B8FE74 #74FDFE
split-complementary
#BA74FE #FDFE74 #74FE75
monochromatic
#7E02F6 #9C37FE #BA74FE #D8B1FE #F0E1FF

Accessibility & contrast

On white

2.99
#BA74FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#BA74FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA74FE
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74FE#FFFFFF#000000##000000
##BA74FE1.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4393FF
Deuteranopia (green-blind)
#5B95FB
Tritanopia (blue-blind)
#AE8EAE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba74fe;
/* rgb */ color: rgb(186, 116, 254);
/* oklch */ color: oklch(69.2% 0.202 305.1);
Tailwind
colors: {
  custom: {
    50: '#d29eff',
    500: '#ba74fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba74fe;
$custom-light: #d29eff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74fe",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 254
  },
  "hsl": {
    "h": 270.435,
    "s": 98.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69233,
    "c": 0.20176,
    "h": 305.1
  },
  "luminance": 0.30086
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA74FE

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

Preview Lab → · Contrast checker → · Palette generator →

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