#BA5CEB#BA5CEB

#BA5CEB is a light, highly saturated violet. Relative luminance 0.241; OKLCH L 64.8% C 0.216 H 312.2°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#BA5CEB
RGBrgb(186, 92, 235)
HSLhsl(279, 78%, 64%)
HSVhsv(279, 61%, 92%)
CMYKcmyk(20.9%, 60.9%, 0%, 7.8%)
CIE-LABlab(56.18, 60.64, -56.90)
CIE-LCHlch(56.18, 83.16, 316.82°)
OKLaboklab(64.83% 0.1451 -0.16)
OKLCHoklch(64.83% 0.216 312.2)
XYZxyz(39.0696, 24.0925, 81.1734)
Luminance0.2409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CEB #8DEB5C
analogous
#735CEB #BA5CEB #EB5CD4
triadic
#BA5CEB #EBBA5C #5CEBBA
tetradic
#BA5CEB #EB735C #8DEB5C #5CD4EB
square
#BA5CEB #EB735C #8DEB5C #5CD4EB
split-complementary
#BA5CEB #D4EB5C #5CEB73
monochromatic
#7F16B6 #A325E4 #BA5CEB #D193F2 #E8C9F8

Accessibility & contrast

On white

3.61
#BA5CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#BA5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CEB
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CEB#FFFFFF#000000##000000
##BA5CEB1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2482EF
Deuteranopia (green-blind)
#5189E8
Tritanopia (blue-blind)
#B5779B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5ceb;
/* rgb */ color: rgb(186, 92, 235);
/* oklch */ color: oklch(64.8% 0.216 312.2);
Tailwind
colors: {
  custom: {
    50: '#d28ff2',
    500: '#ba5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ceb;
$custom-light: #d28ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ceb",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 279.441,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64833,
    "c": 0.21601,
    "h": 312.2
  },
  "luminance": 0.24092
}

Semantic roles & 50–950 ramp

primary
#BA5CEB
secondary
#CAEAB8
accent
#DA0B52
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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