#BA74F8#BA74F8

#BA74F8 is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.9% C 0.195 H 306.5°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#BA74F8
RGBrgb(186, 116, 248)
HSLhsl(272, 90%, 71%)
HSVhsv(272, 53%, 97%)
CMYKcmyk(25%, 53.2%, 0%, 2.7%)
CIE-LABlab(61.40, 51.50, -55.79)
CIE-LCHlch(61.40, 75.93, 312.71°)
OKLaboklab(68.89% 0.1159 -0.1568)
OKLCHoklch(68.89% 0.195 306.5)
XYZxyz(43.4349, 29.7076, 92.2347)
Luminance0.2971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74F8 #B2F874
analogous
#7874F8 #BA74F8 #F874F4
triadic
#BA74F8 #F8BA74 #74F8BA
tetradic
#BA74F8 #F87874 #B2F874 #74F4F8
square
#BA74F8 #F87874 #B2F874 #74F4F8
split-complementary
#BA74F8 #F4F874 #74F878
monochromatic
#7F0CE6 #9D3AF5 #BA74F8 #D7AEFB #F1E2FE

Accessibility & contrast

On white

3.03
#BA74F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#BA74F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74F8
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74F8#FFFFFF#000000##000000
##BA74F81.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4992FC
Deuteranopia (green-blind)
#6095F5
Tritanopia (blue-blind)
#B08CAB
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba74f8;
/* rgb */ color: rgb(186, 116, 248);
/* oklch */ color: oklch(68.9% 0.195 306.5);
Tailwind
colors: {
  custom: {
    50: '#d29efb',
    500: '#ba74f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba74f8;
$custom-light: #d29efb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74f8",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 248
  },
  "hsl": {
    "h": 271.818,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68886,
    "c": 0.19499,
    "h": 306.5
  },
  "luminance": 0.29707
}

Semantic roles & 50–950 ramp

primary
#BA74F8
secondary
#E3F5D3
accent
#E6006C
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140F17
muted
#837E85

Preview Lab

Preview with #BA74F8

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

Preview Lab → · Contrast checker → · Palette generator →

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