#9888E5#9888E5

#9888E5 is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.0% C 0.135 H 290.2°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9888E5
RGBrgb(152, 136, 229)
HSLhsl(250, 64%, 72%)
HSVhsv(250, 41%, 90%)
CMYKcmyk(33.6%, 40.6%, 0%, 10.2%)
CIE-LABlab(61.60, 26.91, -45.16)
CIE-LCHlch(61.60, 52.57, 300.79°)
OKLaboklab(67.96% 0.0467 -0.1267)
OKLCHoklch(67.96% 0.135 290.2)
XYZxyz(35.8922, 29.9400, 78.0015)
Luminance0.2994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9888E5 #D5E588
analogous
#88A7E5 #9888E5 #C788E5
triadic
#9888E5 #E59888 #88E598
tetradic
#9888E5 #E588A7 #D5E588 #88E5C7
square
#9888E5 #E588A7 #D5E588 #88E5C7
split-complementary
#9888E5 #E5C788 #A7E588
monochromatic
#462CC7 #6D56DA #9888E5 #C3BAF0 #E9E6FA

Accessibility & contrast

On white

3.01
#9888E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#9888E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9888E5
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9888E5#FFFFFF#000000##000000
##9888E51.003.016.996.99
#FFFFFF3.011.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B97E9
Deuteranopia (green-blind)
#6C93E3
Tritanopia (blue-blind)
#8599AB
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9888e5;
/* rgb */ color: rgb(152, 136, 229);
/* oklch */ color: oklch(68.0% 0.135 290.2);
Tailwind
colors: {
  custom: {
    50: '#b9aaed',
    500: '#9888e5',
    950: '#000000',
  },
}
SCSS
$custom: #9888e5;
$custom-light: #b9aaed;
$custom-dark: #000000;
JSON
{
  "hex": "#9888e5",
  "rgb": {
    "r": 152,
    "g": 136,
    "b": 229
  },
  "hsl": {
    "h": 250.323,
    "s": 64.138,
    "l": 71.569
  },
  "oklch": {
    "l": 0.6796,
    "c": 0.13503,
    "h": 290.2
  },
  "luminance": 0.29941
}

Semantic roles & 50–950 ramp

primary
#9888E5
secondary
#ECF0D8
accent
#CC1AAD
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#121016
muted
#817F84

Preview Lab

Preview with #9888E5

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9888E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva