#9861BA

A color in the Purple, Crimson, Magenta family

#9861ba is a color in the Purple, Crimson, Magenta family: RGB(152, 97, 186), HSL(277°, 39%, 55%), CMYK(18%, 48%, 0%, 27%). Closest named color: mediumpurple. Contrast is 4.42:1 on white and 4.75:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#9861ba
RGBrgb(152 97 186)
RGB (legacy)rgb(152, 97, 186)
RGB %rgb(60% 38% 73%)
HSLhsl(277 39% 55%)
HSV / HSBhsv(277, 48%, 73%)
HWBhwb(277 38% 27%)
CMYKcmyk(18%, 48%, 0%, 27%)
CIELAB (D50)lab(50.14 35.12 -38.59)
LCHlch(50.14 52.17 312.3)
OKLaboklab(0.5885 0.0939 -0.1071)
OKLCHoklch(0.5885 0.1424 311.24)
Decimal9986490

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumpurple ΔE 5.6
Closest web-safe color#9966cc
Hue277°
Saturation (HSL / HSV)39% / 48%
Lightness (HSL)55%
Brightness or Value (HSV)73%
Luminance (Rec.601 / Rec.709)48% / 45%
Relative luminance (WCAG)0.1877
Red / Green / Blue152 / 97 / 186

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.42:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.75: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 70.4 / -31.3 · As background with white / black text: Lc -75.9 / 33.7

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: #9861ba;
  --color-brand-oklch: oklch(58.85% 0.1424 311.24);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(152 97 186 / 50%); }
/* Tailwind CSS */
<div class="bg-[#9861ba] text-[#9861ba] border-[#9861ba]">