#9888FE

A color in the Violet family

#9888fe is a color in the Violet family: RGB(152, 136, 254), HSL(248°, 98%, 76%), CMYK(40%, 46%, 0%, 0%). Closest named color: mediumpurple. Contrast is 2.88:1 on white and 7.29:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#9888fe
RGBrgb(152 136 254)
RGB (legacy)rgb(152, 136, 254)
RGB %rgb(60% 53% 100%)
HSLhsl(248 98% 76%)
HSV / HSBhsv(248, 46%, 100%)
HWBhwb(248 53% 0%)
CMYKcmyk(40%, 46%, 0%, 0%)
CIELAB (D50)lab(62.21 27.39 -57.69)
LCHlch(62.21 63.86 295.4)
OKLaboklab(0.6934 0.0504 -0.1611)
OKLCHoklch(0.6934 0.1688 287.37)
Decimal9996542

Properties

Color ToneViolet
Closest named colormediumpurple ΔE 7.2
Closest web-safe color#9999ff
Hue248°
Saturation (HSL / HSV)98% / 46%
Lightness (HSL)76%
Brightness or Value (HSV)100%
Luminance (Rec.601 / Rec.709)60% / 58%
Relative luminance (WCAG)0.3144
Red / Green / Blue152 / 136 / 254

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 54.9 / -46.9 · As background with white / black text: Lc -60.2 / 49.2

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: #9888fe;
  --color-brand-oklch: oklch(69.34% 0.1688 287.37);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(152 136 254 / 50%); }
/* Tailwind CSS */
<div class="bg-[#9888fe] text-[#9888fe] border-[#9888fe]">