#BA7CDC#BA7CDC

#BA7CDC is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.6% C 0.150 H 312.7°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#BA7CDC
RGBrgb(186, 124, 220)
HSLhsl(279, 58%, 67%)
HSVhsv(279, 44%, 86%)
CMYKcmyk(15.5%, 43.6%, 0%, 13.7%)
CIE-LABlab(61.67, 41.06, -39.81)
CIE-LCHlch(61.67, 57.19, 315.88°)
OKLaboklab(68.64% 0.102 -0.1104)
OKLCHoklch(68.64% 0.15 312.7)
XYZxyz(40.3734, 30.0225, 71.3644)
Luminance0.3002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CDC #9EDC7C
analogous
#8A7CDC #BA7CDC #DC7CCE
triadic
#BA7CDC #DCBA7C #7CDCBA
tetradic
#BA7CDC #DC8A7C #9EDC7C #7CCEDC
square
#BA7CDC #DC8A7C #9EDC7C #7CCEDC
split-complementary
#BA7CDC #CEDC7C #7CDC8A
monochromatic
#812FAF #A14CCF #BA7CDC #D3ACE9 #EDDDF6

Accessibility & contrast

On white

3.00
#BA7CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#BA7CDC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7CDC
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CDC#FFFFFF#000000##000000
##BA7CDC1.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6992DF
Deuteranopia (green-blind)
#7996D9
Tritanopia (blue-blind)
#B78AA2
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba7cdc;
/* rgb */ color: rgb(186, 124, 220);
/* oklch */ color: oklch(68.6% 0.150 312.7);
Tailwind
colors: {
  custom: {
    50: '#d0a3e7',
    500: '#ba7cdc',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cdc;
$custom-light: #d0a3e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cdc",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 220
  },
  "hsl": {
    "h": 278.75,
    "s": 57.831,
    "l": 67.451
  },
  "oklch": {
    "l": 0.68635,
    "c": 0.15028,
    "h": 312.7
  },
  "luminance": 0.30022
}

Semantic roles & 50–950 ramp

primary
#BA7CDC
secondary
#D6E9CB
accent
#C5205B
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #BA7CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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