#BA8FEE#BA8FEE

#BA8FEE is a light, vivid violet. Relative luminance 0.363; OKLCH L 72.7% C 0.140 H 304.0°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#BA8FEE
RGBrgb(186, 143, 238)
HSLhsl(267, 74%, 75%)
HSVhsv(267, 40%, 93%)
CMYKcmyk(21.8%, 39.9%, 0%, 6.7%)
CIE-LABlab(66.72, 34.61, -41.88)
CIE-LCHlch(66.72, 54.33, 309.57°)
OKLaboklab(72.7% 0.0785 -0.1165)
OKLCHoklch(72.7% 0.14 304)
XYZxyz(45.5015, 36.2572, 85.4736)
Luminance0.3626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8FEE #C3EE8F
analogous
#8F94EE #BA8FEE #EA8FEE
triadic
#BA8FEE #EEBA8F #8FEEBA
tetradic
#BA8FEE #EE8F94 #C3EE8F #8FEEEA
square
#BA8FEE #EE8F94 #C3EE8F #8FEEEA
split-complementary
#BA8FEE #EEEA8F #94EE8F
monochromatic
#7925DE #995AE6 #BA8FEE #DBC4F6 #EFE4FB

Accessibility & contrast

On white

2.55
#BA8FEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#BA8FEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8FEE
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8FEE#FFFFFF#000000##000000
##BA8FEE1.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A1F2
Deuteranopia (green-blind)
#82A2EB
Tritanopia (blue-blind)
#B29EB3
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8fee;
/* rgb */ color: rgb(186, 143, 238);
/* oklch */ color: oklch(72.7% 0.140 304.0);
Tailwind
colors: {
  custom: {
    50: '#d0b0f4',
    500: '#ba8fee',
    950: '#000000',
  },
}
SCSS
$custom: #ba8fee;
$custom-light: #d0b0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8fee",
  "rgb": {
    "r": 186,
    "g": 143,
    "b": 238
  },
  "hsl": {
    "h": 267.158,
    "s": 73.643,
    "l": 74.706
  },
  "oklch": {
    "l": 0.72696,
    "c": 0.14045,
    "h": 304
  },
  "luminance": 0.36257
}

Semantic roles & 50–950 ramp

primary
#BA8FEE
secondary
#E7F3D8
accent
#D6107C
background
#FCFAFE
surface
#F9F5FD
border
#D2CFD5
text
#141017
muted
#827F85

Preview Lab

Preview with #BA8FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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