#997FF2#997FF2

#997FF2 is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.1% C 0.166 H 291.7°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#997FF2
RGBrgb(153, 127, 242)
HSLhsl(254, 82%, 72%)
HSVhsv(254, 48%, 95%)
CMYKcmyk(36.8%, 47.5%, 0%, 5.1%)
CIE-LABlab(60.21, 35.75, -54.56)
CIE-LCHlch(60.21, 65.23, 303.23°)
OKLaboklab(67.15% 0.0614 -0.1541)
OKLCHoklch(67.15% 0.166 291.7)
XYZxyz(36.7490, 28.3609, 87.5252)
Luminance0.2836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997FF2 #D8F27F
analogous
#7F9FF2 #997FF2 #D27FF2
triadic
#997FF2 #F2997F #7FF299
tetradic
#997FF2 #F27F9F #D8F27F #7FF2D2
square
#997FF2 #F27F9F #D8F27F #7FF2D2
split-complementary
#997FF2 #F2D27F #9FF27F
monochromatic
#4417E0 #6D47EC #997FF2 #C5B7F8 #E9E3FC

Accessibility & contrast

On white

3.15
#997FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#997FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997FF2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997FF2#FFFFFF#000000##000000
##997FF21.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5593F6
Deuteranopia (green-blind)
#588FEF
Tritanopia (blue-blind)
#8296AD
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #997ff2;
/* rgb */ color: rgb(153, 127, 242);
/* oklch */ color: oklch(67.1% 0.166 291.7);
Tailwind
colors: {
  custom: {
    50: '#bba4f7',
    500: '#997ff2',
    950: '#000000',
  },
}
SCSS
$custom: #997ff2;
$custom-light: #bba4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#997ff2",
  "rgb": {
    "r": 153,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 253.565,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.67147,
    "c": 0.16589,
    "h": 291.7
  },
  "luminance": 0.28362
}

Semantic roles & 50–950 ramp

primary
#997FF2
secondary
#EDF4D7
accent
#DE08AD
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #997FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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