#985DFD

A color in the Violet family

#985dfd is a color in the Violet family: RGB(152, 93, 253), HSL(262°, 98%, 68%), CMYK(40%, 63%, 0%, 1%). Closest named color: mediumslateblue. Contrast is 3.95:1 on white and 5.32:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#985dfd
RGBrgb(152 93 253)
RGB (legacy)rgb(152, 93, 253)
RGB %rgb(60% 36% 99%)
HSLhsl(262 98% 68%)
HSV / HSBhsv(262, 63%, 99%)
HWBhwb(262 36% 1%)
CMYKcmyk(40%, 63%, 0%, 1%)
CIELAB (D50)lab(52.72 49.84 -72.33)
LCHlch(52.72 87.83 304.57)
OKLaboklab(0.6246 0.0999 -0.2033)
OKLCHoklch(0.6246 0.2265 296.16)
Decimal9985533

Properties

Color ToneViolet
Closest named colormediumslateblue ΔE 5.5
Closest web-safe color#9966ff
Hue262°
Saturation (HSL / HSV)98% / 63%
Lightness (HSL)68%
Brightness or Value (HSV)99%
Luminance (Rec.601 / Rec.709)51% / 46%
Relative luminance (WCAG)0.216
Red / Green / Blue152 / 93 / 253

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.95:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.32: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 66.3 / -35.4 · As background with white / black text: Lc -71.8 / 37.8

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: #985dfd;
  --color-brand-oklch: oklch(62.46% 0.2265 296.16);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(152 93 253 / 50%); }
/* Tailwind CSS */
<div class="bg-[#985dfd] text-[#985dfd] border-[#985dfd]">