#977EFE#977EFE

#977EFE is a light, vivid violet. Relative luminance 0.287; OKLCH L 67.5% C 0.183 H 289.6°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#977EFE
RGBrgb(151, 126, 254)
HSLhsl(252, 98%, 75%)
HSVhsv(252, 50%, 100%)
CMYKcmyk(40.6%, 50.4%, 0%, 0.4%)
CIE-LABlab(60.48, 39.05, -60.76)
CIE-LCHlch(60.48, 72.23, 302.73°)
OKLaboklab(67.52% 0.0613 -0.1724)
OKLCHoklch(67.52% 0.183 289.6)
XYZxyz(38.1078, 28.6556, 97.2699)
Luminance0.2866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977EFE #E5FE7E
analogous
#7EA5FE #977EFE #D77EFE
triadic
#977EFE #FE977E #7EFE97
tetradic
#977EFE #FE7EA5 #E5FE7E #7EFED7
square
#977EFE #FE7EA5 #E5FE7E #7EFED7
split-complementary
#977EFE #FED77E #A5FE7E
monochromatic
#3505FD #6641FE #977EFE #C8BBFE #E7E1FF

Accessibility & contrast

On white

3.12
#977EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#977EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977EFE
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977EFE#FFFFFF#000000##000000
##977EFE1.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4794FF
Deuteranopia (green-blind)
#498FFB
Tritanopia (blue-blind)
#7A98B2
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #977efe;
/* rgb */ color: rgb(151, 126, 254);
/* oklch */ color: oklch(67.5% 0.183 289.6);
Tailwind
colors: {
  custom: {
    50: '#baa4ff',
    500: '#977efe',
    950: '#000000',
  },
}
SCSS
$custom: #977efe;
$custom-light: #baa4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#977efe",
  "rgb": {
    "r": 151,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 251.719,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.67518,
    "c": 0.18293,
    "h": 289.6
  },
  "luminance": 0.28657
}

Semantic roles & 50–950 ramp

primary
#977EFE
secondary
#F0F7D4
accent
#E600B9
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #977EFE

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

Preview Lab → · Contrast checker → · Palette generator →

#977EFE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva