#BA85F2#BA85F2

#BA85F2 is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.2% C 0.162 H 305.1°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#BA85F2
RGBrgb(186, 133, 242)
HSLhsl(269, 81%, 74%)
HSVhsv(269, 45%, 95%)
CMYKcmyk(23.1%, 45%, 0%, 5.1%)
CIE-LABlab(64.66, 41.03, -47.31)
CIE-LCHlch(64.66, 62.62, 310.93°)
OKLaboklab(71.21% 0.0929 -0.1322)
OKLCHoklch(71.21% 0.162 305.1)
XYZxyz(44.6609, 33.6252, 88.1247)
Luminance0.3362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA85F2 #BDF285
analogous
#8586F2 #BA85F2 #F085F2
triadic
#BA85F2 #F2BA85 #85F2BA
tetradic
#BA85F2 #F28586 #BDF285 #85F2F0
square
#BA85F2 #F28586 #BDF285 #85F2F0
split-complementary
#BA85F2 #F2F085 #86F285
monochromatic
#7B18E4 #9B4EEC #BA85F2 #D9BCF8 #EFE3FC

Accessibility & contrast

On white

2.72
#BA85F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#BA85F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA85F2
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA85F2#FFFFFF#000000##000000
##BA85F21.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#689BF6
Deuteranopia (green-blind)
#769DEF
Tritanopia (blue-blind)
#B197B0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba85f2;
/* rgb */ color: rgb(186, 133, 242);
/* oklch */ color: oklch(71.2% 0.162 305.1);
Tailwind
colors: {
  custom: {
    50: '#d1a9f7',
    500: '#ba85f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba85f2;
$custom-light: #d1a9f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba85f2",
  "rgb": {
    "r": 186,
    "g": 133,
    "b": 242
  },
  "hsl": {
    "h": 269.174,
    "s": 80.741,
    "l": 73.529
  },
  "oklch": {
    "l": 0.71213,
    "c": 0.16154,
    "h": 305.1
  },
  "luminance": 0.33625
}

Semantic roles & 50–950 ramp

primary
#BA85F2
secondary
#E6F4D7
accent
#DD0876
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA85F2

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

Preview Lab → · Contrast checker → · Palette generator →

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