#997FEA#997FEA

#997FEA is a light, vivid violet. Relative luminance 0.279; OKLCH L 66.7% C 0.155 H 292.9°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#997FEA
RGBrgb(153, 127, 234)
HSLhsl(255, 72%, 71%)
HSVhsv(255, 46%, 92%)
CMYKcmyk(34.6%, 45.7%, 0%, 8.2%)
CIE-LABlab(59.79, 33.65, -50.80)
CIE-LCHlch(59.79, 60.93, 303.52°)
OKLaboklab(66.69% 0.0604 -0.1431)
OKLCHoklch(66.69% 0.155 292.9)
XYZxyz(35.5737, 27.8908, 81.3352)
Luminance0.2789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997FEA #D0EA7F
analogous
#7F9AEA #997FEA #CE7FEA
triadic
#997FEA #EA997F #7FEA99
tetradic
#997FEA #EA7F9A #D0EA7F #7FEACE
square
#997FEA #EA7F9A #D0EA7F #7FEACE
split-complementary
#997FEA #EACE7F #9AEA7F
monochromatic
#4B22CD #6F4AE1 #997FEA #C3B4F3 #EAE5FB

Accessibility & contrast

On white

3.19
#997FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#997FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997FEA
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997FEA#FFFFFF#000000##000000
##997FEA1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A91EE
Deuteranopia (green-blind)
#5E8EE7
Tritanopia (blue-blind)
#8694A9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #997fea;
/* rgb */ color: rgb(153, 127, 234);
/* oklch */ color: oklch(66.7% 0.155 292.9);
Tailwind
colors: {
  custom: {
    50: '#baa4f1',
    500: '#997fea',
    950: '#000000',
  },
}
SCSS
$custom: #997fea;
$custom-light: #baa4f1;
$custom-dark: #000000;
JSON
{
  "hex": "#997fea",
  "rgb": {
    "r": 153,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 254.579,
    "s": 71.812,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66692,
    "c": 0.15535,
    "h": 292.9
  },
  "luminance": 0.27892
}

Semantic roles & 50–950 ramp

primary
#997FEA
secondary
#EAF1D4
accent
#D412A5
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #997FEA

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

Preview Lab → · Contrast checker → · Palette generator →

#997FEA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva