#BA27B8#BA27B8

#BA27B8 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.7% C 0.234 H 328.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BA27B8
RGBrgb(186, 39, 184)
HSLhsl(301, 65%, 44%)
HSVhsv(301, 79%, 73%)
CMYKcmyk(0%, 79%, 1.1%, 27.1%)
CIE-LABlab(46.11, 71.28, -43.78)
CIE-LCHlch(46.11, 83.65, 328.44°)
OKLaboklab(56.66% 0.2 -0.1213)
OKLCHoklch(56.66% 0.234 328.7)
XYZxyz(29.6267, 15.3531, 46.7412)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27B8 #27BA29
analogous
#7327BA #BA27B8 #BA276F
triadic
#BA27B8 #B8BA27 #27B8BA
tetradic
#BA27B8 #BA7327 #27BA29 #276FBA
square
#BA27B8 #BA7327 #27BA29 #276FBA
split-complementary
#BA27B8 #6FBA27 #27BA73
monochromatic
#551254 #871C86 #BA27B8 #D846D6 #E379E1

Accessibility & contrast

On white

5.16
#BA27B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BA27B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA27B8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27B8#FFFFFF#000000##FFFFFF
##BA27B81.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#5474B5
Tritanopia (blue-blind)
#C04070
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba27b8;
/* rgb */ color: rgb(186, 39, 184);
/* oklch */ color: oklch(56.7% 0.234 328.7);
Tailwind
colors: {
  custom: {
    50: '#d374ce',
    500: '#ba27b8',
    950: '#000000',
  },
}
SCSS
$custom: #ba27b8;
$custom-light: #d374ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27b8",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 184
  },
  "hsl": {
    "h": 300.816,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5666,
    "c": 0.2339,
    "h": 328.7
  },
  "luminance": 0.15351
}

Semantic roles & 50–950 ramp

primary
#BA27B8
secondary
#72CB73
accent
#E84240
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BA27B8

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

Preview Lab → · Contrast checker → · Palette generator →

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