#BA56F4#BA56F4

#BA56F4 is a light, highly saturated violet. Relative luminance 0.236; OKLCH L 64.7% C 0.233 H 310.6°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#BA56F4
RGBrgb(186, 86, 244)
HSLhsl(278, 88%, 65%)
HSVhsv(278, 65%, 96%)
CMYKcmyk(23.8%, 64.8%, 0%, 4.3%)
CIE-LABlab(55.71, 65.29, -62.67)
CIE-LCHlch(55.71, 90.50, 316.17°)
OKLaboklab(64.67% 0.1516 -0.1769)
OKLCHoklch(64.67% 0.233 310.6)
XYZxyz(39.9035, 23.6272, 88.0288)
Luminance0.2363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56F4 #90F456
analogous
#6B56F4 #BA56F4 #F456DF
triadic
#BA56F4 #F4BA56 #56F4BA
tetradic
#BA56F4 #F46B56 #90F456 #56DFF4
square
#BA56F4 #F46B56 #90F456 #56DFF4
split-complementary
#BA56F4 #DFF456 #56F46B
monochromatic
#800DC3 #A31DF0 #BA56F4 #D18FF8 #E9C9FB

Accessibility & contrast

On white

3.67
#BA56F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#BA56F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56F4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56F4#FFFFFF#000000##000000
##BA56F41.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F9
Deuteranopia (green-blind)
#4287F0
Tritanopia (blue-blind)
#B2769E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba56f4;
/* rgb */ color: rgb(186, 86, 244);
/* oklch */ color: oklch(64.7% 0.233 310.6);
Tailwind
colors: {
  custom: {
    50: '#d38cf8',
    500: '#ba56f4',
    950: '#000000',
  },
}
SCSS
$custom: #ba56f4;
$custom-light: #d38cf8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56f4",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 244
  },
  "hsl": {
    "h": 277.975,
    "s": 87.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.64666,
    "c": 0.23298,
    "h": 310.6
  },
  "luminance": 0.23626
}

Semantic roles & 50–950 ramp

primary
#BA56F4
secondary
#CCEEB8
accent
#E40155
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA56F4

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

Preview Lab → · Contrast checker → · Palette generator →

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