#BA6DFD

A color in the Purple, Crimson, Magenta family

#ba6dfd is a color in the Purple, Crimson, Magenta family: RGB(186, 109, 253), HSL(272°, 97%, 71%), CMYK(26%, 57%, 0%, 1%). Closest named color: mediumorchid. Contrast is 3.14:1 on white and 6.69:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#ba6dfd
RGBrgb(186 109 253)
RGB (legacy)rgb(186, 109, 253)
RGB %rgb(73% 43% 99%)
HSLhsl(272 97% 71%)
HSV / HSBhsv(272, 57%, 99%)
HWBhwb(272 43% 1%)
CMYKcmyk(26%, 57%, 0%, 1%)
CIELAB (D50)lab(59.75 50.57 -60.8)
LCHlch(59.75 79.08 309.75)
OKLaboklab(0.6817 0.1247 -0.17)
OKLCHoklch(0.6817 0.2108 306.27)
Decimal12217853

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumorchid ΔE 7.3
Closest web-safe color#cc66ff
Hue272°
Saturation (HSL / HSV)97% / 57%
Lightness (HSL)71%
Brightness or Value (HSV)99%
Luminance (Rec.601 / Rec.709)58% / 53%
Relative luminance (WCAG)0.2847
Red / Green / Blue186 / 109 / 253

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.14:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
6.69:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 58 / -43.8 · As background with white / black text: Lc -63.4 / 46.1

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #ba6dfd;
  --color-brand-oklch: oklch(68.17% 0.2108 306.27);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(186 109 253 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ba6dfd] text-[#ba6dfd] border-[#ba6dfd]">