#BA4FE6#BA4FE6

#BA4FE6 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.0% C 0.229 H 314.5°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#BA4FE6
RGBrgb(186, 79, 230)
HSLhsl(283, 75%, 61%)
HSVhsv(283, 66%, 90%)
CMYKcmyk(19.1%, 65.7%, 0%, 9.8%)
CIE-LABlab(53.76, 65.48, -57.98)
CIE-LCHlch(53.76, 87.46, 318.48°)
OKLaboklab(62.99% 0.1601 -0.1631)
OKLCHoklch(62.99% 0.229 314.5)
XYZxyz(37.3262, 21.7455, 77.0786)
Luminance0.2174 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FE6 #7BE64F
analogous
#6F4FE6 #BA4FE6 #E64FC6
triadic
#BA4FE6 #E6BA4F #4FE6BA
tetradic
#BA4FE6 #E66F4F #7BE64F #4FC6E6
square
#BA4FE6 #E66F4F #7BE64F #4FC6E6
split-complementary
#BA4FE6 #C6E64F #4FE66F
monochromatic
#7B17A3 #A31FD9 #BA4FE6 #CF85EE #E4BAF5

Accessibility & contrast

On white

3.93
#BA4FE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#BA4FE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FE6
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FE6#FFFFFF#000000##000000
##BA4FE61.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEB
Deuteranopia (green-blind)
#4983E2
Tritanopia (blue-blind)
#B66C94
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba4fe6;
/* rgb */ color: rgb(186, 79, 230);
/* oklch */ color: oklch(63.0% 0.229 314.5);
Tailwind
colors: {
  custom: {
    50: '#d388ef',
    500: '#ba4fe6',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fe6;
$custom-light: #d388ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fe6",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 230
  },
  "hsl": {
    "h": 282.517,
    "s": 75.124,
    "l": 60.588
  },
  "oklch": {
    "l": 0.62987,
    "c": 0.22852,
    "h": 314.5
  },
  "luminance": 0.21744
}

Semantic roles & 50–950 ramp

primary
#BA4FE6
secondary
#BCE5AC
accent
#D70E49
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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