#BA94F8#BA94F8

#BA94F8 is a light, vivid violet. Relative luminance 0.384; OKLCH L 74.1% C 0.145 H 300.4°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#BA94F8
RGBrgb(186, 148, 248)
HSLhsl(263, 88%, 78%)
HSVhsv(263, 40%, 97%)
CMYKcmyk(25%, 40.3%, 0%, 2.7%)
CIE-LABlab(68.31, 34.15, -44.86)
CIE-LCHlch(68.31, 56.38, 307.28°)
OKLaboklab(74.05% 0.0734 -0.1251)
OKLCHoklch(74.05% 0.145 300.4)
XYZxyz(47.7791, 38.3960, 93.6828)
Luminance0.3840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA94F8 #D2F894
analogous
#94A0F8 #BA94F8 #EC94F8
triadic
#BA94F8 #F8BA94 #94F8BA
tetradic
#BA94F8 #F894A0 #D2F894 #94F8EC
square
#BA94F8 #F894A0 #D2F894 #94F8EC
split-complementary
#BA94F8 #F8EC94 #A0F894
monochromatic
#7021F0 #955BF4 #BA94F8 #DFCDFC #ECE2FD

Accessibility & contrast

On white

2.42
#BA94F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#BA94F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA94F8
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA94F8#FFFFFF#000000##000000
##BA94F81.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA6FC
Deuteranopia (green-blind)
#81A6F5
Tritanopia (blue-blind)
#AEA5BA
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ba94f8;
/* rgb */ color: rgb(186, 148, 248);
/* oklch */ color: oklch(74.1% 0.145 300.4);
Tailwind
colors: {
  custom: {
    50: '#d0b4fb',
    500: '#ba94f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba94f8;
$custom-light: #d0b4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba94f8",
  "rgb": {
    "r": 186,
    "g": 148,
    "b": 248
  },
  "hsl": {
    "h": 262.8,
    "s": 87.719,
    "l": 77.647
  },
  "oklch": {
    "l": 0.7405,
    "c": 0.14507,
    "h": 300.4
  },
  "luminance": 0.38396
}

Semantic roles & 50–950 ramp

primary
#BA94F8
secondary
#E9F5D6
accent
#E4018E
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BA94F8

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

Preview Lab → · Contrast checker → · Palette generator →

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