#997EF2#997EF2

#997EF2 is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.0% C 0.167 H 292.0°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#997EF2
RGBrgb(153, 126, 242)
HSLhsl(254, 82%, 72%)
HSVhsv(254, 48%, 95%)
CMYKcmyk(36.8%, 47.9%, 0%, 5.1%)
CIE-LABlab(59.98, 36.32, -54.93)
CIE-LCHlch(59.98, 65.85, 303.47°)
OKLaboklab(66.97% 0.0626 -0.1552)
OKLCHoklch(66.97% 0.167 292)
XYZxyz(36.6205, 28.1039, 87.4824)
Luminance0.2811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997EF2 #D7F27E
analogous
#7E9DF2 #997EF2 #D37EF2
triadic
#997EF2 #F2997E #7EF299
tetradic
#997EF2 #F27E9D #D7F27E #7EF2D3
square
#997EF2 #F27E9D #D7F27E #7EF2D3
split-complementary
#997EF2 #F2D37E #9DF27E
monochromatic
#4516DF #6D46EC #997EF2 #C5B6F8 #E9E3FC

Accessibility & contrast

On white

3.17
#997EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#997EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997EF2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997EF2#FFFFFF#000000##000000
##997EF21.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5392F6
Deuteranopia (green-blind)
#568EEF
Tritanopia (blue-blind)
#8395AD
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #997ef2;
/* rgb */ color: rgb(153, 126, 242);
/* oklch */ color: oklch(67.0% 0.167 292.0);
Tailwind
colors: {
  custom: {
    50: '#bba4f7',
    500: '#997ef2',
    950: '#000000',
  },
}
SCSS
$custom: #997ef2;
$custom-light: #bba4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#997ef2",
  "rgb": {
    "r": 153,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 253.966,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.66974,
    "c": 0.16735,
    "h": 292
  },
  "luminance": 0.28105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #997EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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