#BA9DF2#BA9DF2

#BA9DF2 is a light, vivid violet. Relative luminance 0.410; OKLCH L 75.4% C 0.123 H 299.1°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#BA9DF2
RGBrgb(186, 157, 242)
HSLhsl(260, 77%, 78%)
HSVhsv(260, 35%, 95%)
CMYKcmyk(23.1%, 35.1%, 0%, 5.1%)
CIE-LABlab(70.15, 27.74, -38.71)
CIE-LCHlch(70.15, 47.62, 305.63°)
OKLaboklab(75.36% 0.0598 -0.1074)
OKLCHoklch(75.36% 0.123 299.1)
XYZxyz(48.3301, 40.9636, 89.3478)
Luminance0.4096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9DF2 #D5F29D
analogous
#9DAAF2 #BA9DF2 #E59DF2
triadic
#BA9DF2 #F2BA9D #9DF2BA
tetradic
#BA9DF2 #F29DAA #D5F29D #9DF2E5
square
#BA9DF2 #F29DAA #D5F29D #9DF2E5
split-complementary
#BA9DF2 #F2E59D #AAF29D
monochromatic
#6E31E4 #9467EB #BA9DF2 #E0D3F9 #ECE4FB

Accessibility & contrast

On white

2.28
#BA9DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.19
#BA9DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9DF2
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9DF2#FFFFFF#000000##000000
##BA9DF21.002.289.199.19
#FFFFFF2.281.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#88ABF5
Deuteranopia (green-blind)
#8DABF0
Tritanopia (blue-blind)
#B0ABBC
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #ba9df2;
/* rgb */ color: rgb(186, 157, 242);
/* oklch */ color: oklch(75.4% 0.123 299.1);
Tailwind
colors: {
  custom: {
    50: '#d0baf6',
    500: '#ba9df2',
    950: '#000000',
  },
}
SCSS
$custom: #ba9df2;
$custom-light: #d0baf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9df2",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 242
  },
  "hsl": {
    "h": 260.471,
    "s": 76.577,
    "l": 78.235
  },
  "oklch": {
    "l": 0.75361,
    "c": 0.12293,
    "h": 299.1
  },
  "luminance": 0.40964
}

Semantic roles & 50–950 ramp

primary
#BA9DF2
secondary
#EAF3D8
accent
#D90D93
background
#FCFBFF
surface
#F9F6FE
border
#D2D0D6
text
#141117
muted
#828085

Preview Lab

Preview with #BA9DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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