#BA5CED#BA5CED

#BA5CED is a light, highly saturated violet. Relative luminance 0.242; OKLCH L 65.0% C 0.218 H 311.7°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#BA5CED
RGBrgb(186, 92, 237)
HSLhsl(279, 80%, 65%)
HSVhsv(279, 61%, 93%)
CMYKcmyk(21.5%, 61.2%, 0%, 7.1%)
CIE-LABlab(56.30, 61.06, -57.83)
CIE-LCHlch(56.30, 84.10, 316.56°)
OKLaboklab(64.95% 0.1451 -0.1627)
OKLCHoklch(64.95% 0.218 311.7)
XYZxyz(39.3601, 24.2088, 82.7037)
Luminance0.2421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CED #8FED5C
analogous
#725CED #BA5CED #ED5CD7
triadic
#BA5CED #EDBA5C #5CEDBA
tetradic
#BA5CED #ED725C #8FED5C #5CD7ED
square
#BA5CED #ED725C #8FED5C #5CD7ED
split-complementary
#BA5CED #D7ED5C #5CED72
monochromatic
#8015BA #A325E7 #BA5CED #D193F3 #E9CAF9

Accessibility & contrast

On white

3.59
#BA5CED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#BA5CED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CED
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CED#FFFFFF#000000##000000
##BA5CED1.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F82F2
Deuteranopia (green-blind)
#5089EA
Tritanopia (blue-blind)
#B4779C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5ced;
/* rgb */ color: rgb(186, 92, 237);
/* oklch */ color: oklch(65.0% 0.218 311.7);
Tailwind
colors: {
  custom: {
    50: '#d28ff3',
    500: '#ba5ced',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ced;
$custom-light: #d28ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ced",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 237
  },
  "hsl": {
    "h": 278.897,
    "s": 80.11,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64954,
    "c": 0.21802,
    "h": 311.7
  },
  "luminance": 0.24208
}

Semantic roles & 50–950 ramp

primary
#BA5CED
secondary
#CBEBB9
accent
#DC0953
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5CED

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

Preview Lab → · Contrast checker → · Palette generator →

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