#985EE4

A color in the Violet family

#985ee4 is a color in the Violet family: RGB(152, 94, 228), HSL(266°, 71%, 63%), CMYK(33%, 59%, 0%, 11%). Closest named color: mediumpurple. Contrast is 4.15:1 on white and 5.06:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#985ee4
RGBrgb(152 94 228)
RGB (legacy)rgb(152, 94, 228)
RGB %rgb(60% 37% 89%)
HSLhsl(266 71% 63%)
HSV / HSBhsv(266, 59%, 89%)
HWBhwb(266 37% 11%)
CMYKcmyk(33%, 59%, 0%, 11%)
CIELAB (D50)lab(51.51 44.39 -60.32)
LCHlch(51.51 74.9 306.35)
OKLaboklab(0.6089 0.1001 -0.1691)
OKLCHoklch(0.6089 0.1965 300.64)
Decimal9985764

Properties

Color ToneViolet
Closest named colormediumpurple ΔE 4.4
Closest web-safe color#9966cc
Hue266°
Saturation (HSL / HSV)71% / 59%
Lightness (HSL)63%
Brightness or Value (HSV)89%
Luminance (Rec.601 / Rec.709)50% / 45%
Relative luminance (WCAG)0.2028
Red / Green / Blue152 / 94 / 228

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.15:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.06: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 68.2 / -33.5 · As background with white / black text: Lc -73.7 / 35.9

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: #985ee4;
  --color-brand-oklch: oklch(60.89% 0.1965 300.64);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(152 94 228 / 50%); }
/* Tailwind CSS */
<div class="bg-[#985ee4] text-[#985ee4] border-[#985ee4]">