#9978EA#9978EA

#9978EA is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.5% C 0.166 H 294.7°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9978EA
RGBrgb(153, 120, 234)
HSLhsl(257, 73%, 69%)
HSVhsv(257, 49%, 92%)
CMYKcmyk(34.6%, 48.7%, 0%, 8.2%)
CIE-LABlab(58.17, 37.64, -53.37)
CIE-LCHlch(58.17, 65.30, 305.20°)
OKLaboklab(65.48% 0.0694 -0.1506)
OKLCHoklch(65.48% 0.166 294.7)
XYZxyz(34.7008, 26.1451, 81.0442)
Luminance0.2615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9978EA #C9EA78
analogous
#7890EA #9978EA #D278EA
triadic
#9978EA #EA9978 #78EA99
tetradic
#9978EA #EA7890 #C9EA78 #78EAD2
square
#9978EA #EA7890 #C9EA78 #78EAD2
split-complementary
#9978EA #EAD278 #90EA78
monochromatic
#501FC8 #7143E2 #9978EA #C1ADF2 #E9E2FA

Accessibility & contrast

On white

3.37
#9978EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#9978EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9978EA
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9978EA#FFFFFF#000000##000000
##9978EA1.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8DEE
Deuteranopia (green-blind)
#558AE7
Tritanopia (blue-blind)
#868EA6
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9978ea;
/* rgb */ color: rgb(153, 120, 234);
/* oklch */ color: oklch(65.5% 0.166 294.7);
Tailwind
colors: {
  custom: {
    50: '#ba9ff1',
    500: '#9978ea',
    950: '#000000',
  },
}
SCSS
$custom: #9978ea;
$custom-light: #ba9ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#9978ea",
  "rgb": {
    "r": 153,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 257.368,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.6548,
    "c": 0.16586,
    "h": 294.7
  },
  "luminance": 0.26146
}

Semantic roles & 50–950 ramp

primary
#9978EA
secondary
#E6EFCE
accent
#D5109C
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9978EA

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

Preview Lab → · Contrast checker → · Palette generator →

#9978EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva