#977DEC#977DEC

#977DEC is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.3% C 0.161 H 292.2°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#977DEC
RGBrgb(151, 125, 236)
HSLhsl(254, 74%, 71%)
HSVhsv(254, 47%, 93%)
CMYKcmyk(36%, 47%, 0%, 7.5%)
CIE-LABlab(59.25, 34.81, -52.77)
CIE-LCHlch(59.25, 63.22, 303.41°)
OKLaboklab(66.28% 0.0608 -0.1489)
OKLCHoklch(66.28% 0.161 292.2)
XYZxyz(35.2324, 27.3018, 82.7541)
Luminance0.2730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977DEC #D2EC7D
analogous
#7D9AEC #977DEC #CE7DEC
triadic
#977DEC #EC977D #7DEC97
tetradic
#977DEC #EC7D9A #D2EC7D #7DECCE
square
#977DEC #EC7D9A #D2EC7D #7DECCE
split-complementary
#977DEC #ECCE7D #9AEC7D
monochromatic
#481ED0 #6C48E4 #977DEC #C2B2F4 #EAE4FB

Accessibility & contrast

On white

3.25
#977DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#977DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977DEC
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977DEC#FFFFFF#000000##000000
##977DEC1.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5590F0
Deuteranopia (green-blind)
#598DE9
Tritanopia (blue-blind)
#8293A9
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #977dec;
/* rgb */ color: rgb(151, 125, 236);
/* oklch */ color: oklch(66.3% 0.161 292.2);
Tailwind
colors: {
  custom: {
    50: '#b9a3f3',
    500: '#977dec',
    950: '#000000',
  },
}
SCSS
$custom: #977dec;
$custom-light: #b9a3f3;
$custom-dark: #000000;
JSON
{
  "hex": "#977dec",
  "rgb": {
    "r": 151,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 254.054,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.6628,
    "c": 0.1609,
    "h": 292.2
  },
  "luminance": 0.27303
}

Semantic roles & 50–950 ramp

primary
#977DEC
secondary
#EAF1D3
accent
#D70FA8
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #977DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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