#BA38EA#BA38EA

#BA38EA is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 61.1% C 0.258 H 314.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA38EA
RGBrgb(186, 56, 234)
HSLhsl(284, 81%, 57%)
HSVhsv(284, 76%, 92%)
CMYKcmyk(20.5%, 76.1%, 0%, 8.2%)
CIE-LABlab(50.93, 74.98, -64.78)
CIE-LCHlch(50.93, 99.08, 319.17°)
OKLaboklab(61.06% 0.1816 -0.1829)
OKLCHoklch(61.06% 0.258 314.8)
XYZxyz(36.5127, 19.2093, 79.6104)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38EA #68EA38
analogous
#6138EA #BA38EA #EA38C1
triadic
#BA38EA #EABA38 #38EABA
tetradic
#BA38EA #EA6138 #68EA38 #38C1EA
square
#BA38EA #EA6138 #68EA38 #38C1EA
split-complementary
#BA38EA #C1EA38 #38EA61
monochromatic
#731098 #9D16CF #BA38EA #CD6FF0 #E0A7F6

Accessibility & contrast

On white

4.34
#BA38EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#BA38EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA38EA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38EA#FFFFFF#000000##000000
##BA38EA1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#2E7CE6
Tritanopia (blue-blind)
#B66190
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba38ea;
/* rgb */ color: rgb(186, 56, 234);
/* oklch */ color: oklch(61.1% 0.258 314.8);
Tailwind
colors: {
  custom: {
    50: '#d47cf2',
    500: '#ba38ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba38ea;
$custom-light: #d47cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38ea",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 234
  },
  "hsl": {
    "h": 283.82,
    "s": 80.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61056,
    "c": 0.25775,
    "h": 314.8
  },
  "luminance": 0.19208
}

Semantic roles & 50–950 ramp

primary
#BA38EA
secondary
#AEE39B
accent
#F73066
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #BA38EA

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

Preview Lab → · Contrast checker → · Palette generator →

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