#BA80F2#BA80F2

#BA80F2 is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.4% C 0.169 H 306.0°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#BA80F2
RGBrgb(186, 128, 242)
HSLhsl(271, 81%, 73%)
HSVhsv(271, 47%, 95%)
CMYKcmyk(23.1%, 47.1%, 0%, 5.1%)
CIE-LABlab(63.58, 43.75, -49.02)
CIE-LCHlch(63.58, 65.70, 311.75°)
OKLaboklab(70.4% 0.0996 -0.1371)
OKLCHoklch(70.4% 0.169 306)
XYZxyz(43.9926, 32.2886, 87.9019)
Luminance0.3229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA80F2 #B8F280
analogous
#8180F2 #BA80F2 #F280F1
triadic
#BA80F2 #F2BA80 #80F2BA
tetradic
#BA80F2 #F28180 #B8F280 #80F1F2
square
#BA80F2 #F28180 #B8F280 #80F1F2
split-complementary
#BA80F2 #F1F280 #80F281
monochromatic
#7E17E1 #9C48EC #BA80F2 #D8B8F8 #F0E3FC

Accessibility & contrast

On white

2.82
#BA80F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#BA80F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA80F2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA80F2#FFFFFF#000000##000000
##BA80F21.002.827.467.46
#FFFFFF2.821.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6198F6
Deuteranopia (green-blind)
#719AEF
Tritanopia (blue-blind)
#B193AE
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba80f2;
/* rgb */ color: rgb(186, 128, 242);
/* oklch */ color: oklch(70.4% 0.169 306.0);
Tailwind
colors: {
  custom: {
    50: '#d1a6f7',
    500: '#ba80f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba80f2;
$custom-light: #d1a6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba80f2",
  "rgb": {
    "r": 186,
    "g": 128,
    "b": 242
  },
  "hsl": {
    "h": 270.526,
    "s": 81.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.70403,
    "c": 0.16949,
    "h": 306
  },
  "luminance": 0.32288
}

Semantic roles & 50–950 ramp

primary
#BA80F2
secondary
#E5F4D7
accent
#DE0871
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA80F2

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

Preview Lab → · Contrast checker → · Palette generator →

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