#BA74F7#BA74F7

#BA74F7 is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.8% C 0.194 H 306.7°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#BA74F7
RGBrgb(186, 116, 247)
HSLhsl(272, 89%, 71%)
HSVhsv(272, 53%, 97%)
CMYKcmyk(24.7%, 53%, 0%, 3.1%)
CIE-LABlab(61.35, 51.27, -55.32)
CIE-LCHlch(61.35, 75.43, 312.83°)
OKLaboklab(68.83% 0.1158 -0.1555)
OKLCHoklch(68.83% 0.194 306.7)
XYZxyz(43.2801, 29.6457, 91.4198)
Luminance0.2964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74F7 #B1F774
analogous
#7874F7 #BA74F7 #F774F3
triadic
#BA74F7 #F7BA74 #74F7BA
tetradic
#BA74F7 #F77874 #B1F774 #74F3F7
square
#BA74F7 #F77874 #B1F774 #74F3F7
split-complementary
#BA74F7 #F3F774 #74F778
monochromatic
#800DE4 #9D3AF4 #BA74F7 #D7AEFA #F1E2FD

Accessibility & contrast

On white

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

On black

6.93
#BA74F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74F7
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74F7#FFFFFF#000000##000000
##BA74F71.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A92FB
Deuteranopia (green-blind)
#6195F4
Tritanopia (blue-blind)
#B08CAB
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba74f7;
/* rgb */ color: rgb(186, 116, 247);
/* oklch */ color: oklch(68.8% 0.194 306.7);
Tailwind
colors: {
  custom: {
    50: '#d29efa',
    500: '#ba74f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba74f7;
$custom-light: #d29efa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74f7",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 247
  },
  "hsl": {
    "h": 272.061,
    "s": 89.116,
    "l": 71.176
  },
  "oklch": {
    "l": 0.68829,
    "c": 0.19385,
    "h": 306.7
  },
  "luminance": 0.29645
}

Semantic roles & 50–950 ramp

primary
#BA74F7
secondary
#E2F5D2
accent
#E6006B
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140F17
muted
#837E85

Preview Lab

Preview with #BA74F7

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

Preview Lab → · Contrast checker → · Palette generator →

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