#BA40E0#BA40E0

#BA40E0 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.1% C 0.241 H 316.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BA40E0
RGBrgb(186, 64, 224)
HSLhsl(286, 72%, 56%)
HSVhsv(286, 71%, 88%)
CMYKcmyk(17%, 71.4%, 0%, 12.2%)
CIE-LABlab(51.25, 70.31, -58.61)
CIE-LCHlch(51.25, 91.53, 320.19°)
OKLaboklab(61.08% 0.1759 -0.1648)
OKLCHoklch(61.08% 0.241 316.9)
XYZxyz(35.5356, 19.4892, 72.3965)
Luminance0.1949 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40E0 #66E040
analogous
#6A40E0 #BA40E0 #E040B6
triadic
#BA40E0 #E0BA40 #40E0BA
tetradic
#BA40E0 #E06A40 #66E040 #40B6E0
square
#BA40E0 #E06A40 #66E040 #40B6E0
split-complementary
#BA40E0 #B6E040 #40E06A
monochromatic
#72178E #9C20C3 #BA40E0 #CD75E9 #E0A9F1

Accessibility & contrast

On white

4.29
#BA40E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#BA40E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA40E0
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40E0#FFFFFF#000000##000000
##BA40E01.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#427EDC
Tritanopia (blue-blind)
#B8618C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba40e0;
/* rgb */ color: rgb(186, 64, 224);
/* oklch */ color: oklch(61.1% 0.241 316.9);
Tailwind
colors: {
  custom: {
    50: '#d380ea',
    500: '#ba40e0',
    950: '#000000',
  },
}
SCSS
$custom: #ba40e0;
$custom-light: #d380ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40e0",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 224
  },
  "hsl": {
    "h": 285.75,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61081,
    "c": 0.24102,
    "h": 316.9
  },
  "luminance": 0.19488
}

Semantic roles & 50–950 ramp

primary
#BA40E0
secondary
#ADDF9D
accent
#EF3964
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA40E0

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

Preview Lab → · Contrast checker → · Palette generator →

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