#BA91F7#BA91F7

#BA91F7 is a light, vivid violet. Relative luminance 0.374; OKLCH L 73.5% C 0.149 H 301.4°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#BA91F7
RGBrgb(186, 145, 247)
HSLhsl(264, 86%, 77%)
HSVhsv(264, 41%, 97%)
CMYKcmyk(24.7%, 41.3%, 0%, 3.1%)
CIE-LABlab(67.58, 35.58, -45.46)
CIE-LCHlch(67.58, 57.73, 308.05°)
OKLaboklab(73.48% 0.0773 -0.1268)
OKLCHoklch(73.48% 0.149 301.4)
XYZxyz(47.1599, 37.4052, 92.7131)
Luminance0.3740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA91F7 #CEF791
analogous
#919BF7 #BA91F7 #ED91F7
triadic
#BA91F7 #F7BA91 #91F7BA
tetradic
#BA91F7 #F7919B #CEF791 #91F7ED
square
#BA91F7 #F7919B #CEF791 #91F7ED
split-complementary
#BA91F7 #F7ED91 #9BF791
monochromatic
#721FEF #9658F3 #BA91F7 #DECAFB #EDE2FD

Accessibility & contrast

On white

2.48
#BA91F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#BA91F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA91F7
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA91F7#FFFFFF#000000##000000
##BA91F71.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A4FB
Deuteranopia (green-blind)
#7FA4F4
Tritanopia (blue-blind)
#AFA2B8
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ba91f7;
/* rgb */ color: rgb(186, 145, 247);
/* oklch */ color: oklch(73.5% 0.149 301.4);
Tailwind
colors: {
  custom: {
    50: '#d0b2fa',
    500: '#ba91f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba91f7;
$custom-light: #d0b2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba91f7",
  "rgb": {
    "r": 186,
    "g": 145,
    "b": 247
  },
  "hsl": {
    "h": 264.118,
    "s": 86.441,
    "l": 76.863
  },
  "oklch": {
    "l": 0.73483,
    "c": 0.14857,
    "h": 301.4
  },
  "luminance": 0.37405
}

Semantic roles & 50–950 ramp

primary
#BA91F7
secondary
#E9F5D6
accent
#E30389
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BA91F7

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

Preview Lab → · Contrast checker → · Palette generator →

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