#BA27C4#BA27C4

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

Color values

HEX#BA27C4
RGBrgb(186, 39, 196)
HSLhsl(296, 67%, 46%)
HSVhsv(296, 80%, 77%)
CMYKcmyk(5.1%, 80.1%, 0%, 23.1%)
CIE-LABlab(46.81, 73.20, -49.67)
CIE-LCHlch(46.81, 88.46, 325.84°)
OKLaboklab(57.38% 0.1993 -0.1385)
OKLCHoklch(57.38% 0.243 325.2)
XYZxyz(30.9383, 15.8778, 53.6490)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27C4 #31C427
analogous
#6B27C4 #BA27C4 #C4277F
triadic
#BA27C4 #C4BA27 #27C4BA
tetradic
#BA27C4 #C46B27 #31C427 #277FC4
square
#BA27C4 #C46B27 #31C427 #277FC4
split-complementary
#BA27C4 #7FC427 #27C46B
monochromatic
#59135E #8A1D91 #BA27C4 #D24DDC #DF80E6

Accessibility & contrast

On white

5.03
#BA27C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BA27C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA27C4
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27C4#FFFFFF#000000##FFFFFF
##BA27C41.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba27c4;
/* rgb */ color: rgb(186, 39, 196);
/* oklch */ color: oklch(57.4% 0.243 325.2);
Tailwind
colors: {
  custom: {
    50: '#d374d6',
    500: '#ba27c4',
    950: '#000000',
  },
}
SCSS
$custom: #ba27c4;
$custom-light: #d374d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27c4",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 196
  },
  "hsl": {
    "h": 296.178,
    "s": 66.809,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57381,
    "c": 0.24267,
    "h": 325.2
  },
  "luminance": 0.15876
}

Semantic roles & 50–950 ramp

primary
#BA27C4
secondary
#7ECE79
accent
#EA3E49
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150914
muted
#837B83

Preview Lab

Preview with #BA27C4

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

Preview Lab → · Contrast checker → · Palette generator →

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