#BA7CED#BA7CED

#BA7CED is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.5% C 0.170 H 307.9°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#BA7CED
RGBrgb(186, 124, 237)
HSLhsl(273, 76%, 71%)
HSVhsv(273, 48%, 93%)
CMYKcmyk(21.5%, 47.7%, 0%, 7.1%)
CIE-LABlab(62.48, 44.78, -47.99)
CIE-LCHlch(62.48, 65.64, 313.02°)
OKLaboklab(69.5% 0.1044 -0.1341)
OKLCHoklch(69.5% 0.17 307.9)
XYZxyz(42.7404, 30.9693, 83.8304)
Luminance0.3097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CED #AFED7C
analogous
#817CED #BA7CED #ED7CE8
triadic
#BA7CED #EDBA7C #7CEDBA
tetradic
#BA7CED #ED817C #AFED7C #7CE8ED
square
#BA7CED #ED817C #AFED7C #7CE8ED
split-complementary
#BA7CED #E8ED7C #7CED81
monochromatic
#801DD2 #9E46E6 #BA7CED #D6B2F4 #F1E4FB

Accessibility & contrast

On white

2.92
#BA7CED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#BA7CED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7CED
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CED#FFFFFF#000000##000000
##BA7CED1.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F95F1
Deuteranopia (green-blind)
#7098EA
Tritanopia (blue-blind)
#B38FA9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7ced;
/* rgb */ color: rgb(186, 124, 237);
/* oklch */ color: oklch(69.5% 0.170 307.9);
Tailwind
colors: {
  custom: {
    50: '#d1a3f3',
    500: '#ba7ced',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ced;
$custom-light: #d1a3f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ced",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 237
  },
  "hsl": {
    "h": 272.92,
    "s": 75.839,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69503,
    "c": 0.16997,
    "h": 307.9
  },
  "luminance": 0.30969
}

Semantic roles & 50–950 ramp

primary
#BA7CED
secondary
#E1F2D3
accent
#D80D69
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7CED

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

Preview Lab → · Contrast checker → · Palette generator →

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