#BA58CB#BA58CB

#BA58CB is a light, vivid purple. Relative luminance 0.217; OKLCH L 62.5% C 0.190 H 321.5°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#BA58CB
RGBrgb(186, 88, 203)
HSLhsl(291, 53%, 57%)
HSVhsv(291, 57%, 80%)
CMYKcmyk(8.4%, 56.7%, 0%, 20.4%)
CIE-LABlab(53.74, 56.12, -42.68)
CIE-LCHlch(53.74, 70.51, 322.74°)
OKLaboklab(62.49% 0.1491 -0.1185)
OKLCHoklch(62.49% 0.19 321.5)
XYZxyz(34.5177, 21.7320, 58.8648)
Luminance0.2173 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58CB #69CB58
analogous
#8058CB #BA58CB #CB58A3
triadic
#BA58CB #CBBA58 #58CBBA
tetradic
#BA58CB #CB8058 #69CB58 #58A3CB
square
#BA58CB #CB8058 #69CB58 #58A3CB
split-complementary
#BA58CB #A3CB58 #58CB80
monochromatic
#732881 #9D37AF #BA58CB #CD87DA #E1B5E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA58CB#FFFFFF#000000##000000
##BA58CB1.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)
#4279CF
Deuteranopia (green-blind)
#6484C8
Tritanopia (blue-blind)
#BC6989
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba58cb;
/* rgb */ color: rgb(186, 88, 203);
/* oklch */ color: oklch(62.5% 0.190 321.5);
Tailwind
colors: {
  custom: {
    50: '#d18cdb',
    500: '#ba58cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba58cb;
$custom-light: #d18cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58cb",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 291.13,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.62493,
    "c": 0.19045,
    "h": 321.5
  },
  "luminance": 0.2173
}

Semantic roles & 50–950 ramp

primary
#BA58CB
secondary
#AFD7A8
accent
#DC4C61
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA58CB

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

Preview Lab → · Contrast checker → · Palette generator →

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