#BA26C4#BA26C4

#BA26C4 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.3% C 0.243 H 325.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA26C4
RGBrgb(186, 38, 196)
HSLhsl(296, 68%, 46%)
HSVhsv(296, 81%, 77%)
CMYKcmyk(5.1%, 80.6%, 0%, 23.1%)
CIE-LABlab(46.73, 73.44, -49.80)
CIE-LCHlch(46.73, 88.74, 325.86°)
OKLaboklab(57.32% 0.2 -0.1389)
OKLCHoklch(57.32% 0.243 325.2)
XYZxyz(30.9059, 15.8130, 53.6382)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA26C4 #30C426
analogous
#6B26C4 #BA26C4 #C4267F
triadic
#BA26C4 #C4BA26 #26C4BA
tetradic
#BA26C4 #C46B26 #30C426 #267FC4
square
#BA26C4 #C46B26 #30C426 #267FC4
split-complementary
#BA26C4 #7FC426 #26C46B
monochromatic
#59125D #891C91 #BA26C4 #D34BDC #DF7EE6

Accessibility & contrast

On white

5.05
#BA26C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA26C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA26C4
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA26C4#FFFFFF#000000##FFFFFF
##BA26C41.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#4B75C0
Tritanopia (blue-blind)
#BE4677
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba26c4;
/* rgb */ color: rgb(186, 38, 196);
/* oklch */ color: oklch(57.3% 0.243 325.2);
Tailwind
colors: {
  custom: {
    50: '#d374d6',
    500: '#ba26c4',
    950: '#000000',
  },
}
SCSS
$custom: #ba26c4;
$custom-light: #d374d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba26c4",
  "rgb": {
    "r": 186,
    "g": 38,
    "b": 196
  },
  "hsl": {
    "h": 296.203,
    "s": 67.521,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57321,
    "c": 0.24347,
    "h": 325.2
  },
  "luminance": 0.15811
}

Semantic roles & 50–950 ramp

primary
#BA26C4
secondary
#7DCE77
accent
#EA3D48
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150914
muted
#837B83

Preview Lab

Preview with #BA26C4

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

Preview Lab → · Contrast checker → · Palette generator →

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