#BA4FDB#BA4FDB

#BA4FDB is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.3% C 0.218 H 317.3°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BA4FDB
RGBrgb(186, 79, 219)
HSLhsl(286, 66%, 58%)
HSVhsv(286, 64%, 86%)
CMYKcmyk(15.1%, 63.9%, 0%, 14.1%)
CIE-LABlab(53.11, 63.31, -52.80)
CIE-LCHlch(53.11, 82.43, 320.17°)
OKLaboklab(62.32% 0.1605 -0.1479)
OKLCHoklch(62.32% 0.218 317.3)
XYZxyz(35.8300, 21.1470, 69.1985)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FDB #70DB4F
analogous
#744FDB #BA4FDB #DB4FB6
triadic
#BA4FDB #DBBA4F #4FDBBA
tetradic
#BA4FDB #DB744F #70DB4F #4FB6DB
square
#BA4FDB #DB744F #70DB4F #4FB6DB
split-complementary
#BA4FDB #B6DB4F #4FDB74
monochromatic
#761E92 #A028C5 #BA4FDB #CE82E5 #E2B5F0

Accessibility & contrast

On white

4.02
#BA4FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#BA4FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FDB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FDB#FFFFFF#000000##000000
##BA4FDB1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D78DF
Deuteranopia (green-blind)
#5382D8
Tritanopia (blue-blind)
#B9688E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba4fdb;
/* rgb */ color: rgb(186, 79, 219);
/* oklch */ color: oklch(62.3% 0.218 317.3);
Tailwind
colors: {
  custom: {
    50: '#d287e7',
    500: '#ba4fdb',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fdb;
$custom-light: #d287e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fdb",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 285.857,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.62315,
    "c": 0.21824,
    "h": 317.3
  },
  "luminance": 0.21146
}

Semantic roles & 50–950 ramp

primary
#BA4FDB
secondary
#B4DFA7
accent
#E93F67
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA4FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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