#8972EC#8972EC

#8972EC is a light, vivid violet. Relative luminance 0.234; OKLCH L 63.2% C 0.177 H 289.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8972EC
RGBrgb(137, 114, 236)
HSLhsl(251, 76%, 69%)
HSVhsv(251, 52%, 93%)
CMYKcmyk(41.9%, 51.7%, 0%, 7.5%)
CIE-LABlab(55.49, 37.76, -58.85)
CIE-LCHlch(55.49, 69.92, 302.68°)
OKLaboklab(63.17% 0.0575 -0.1672)
OKLCHoklch(63.17% 0.177 289)
XYZxyz(31.4699, 23.4080, 82.2007)
Luminance0.2341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8972EC #D5EC72
analogous
#7298EC #8972EC #C672EC
triadic
#8972EC #EC8972 #72EC89
tetradic
#8972EC #EC7298 #D5EC72 #72ECC6
square
#8972EC #EC7298 #D5EC72 #72ECC6
split-complementary
#8972EC #ECC672 #98EC72
monochromatic
#3C1BC9 #5C3CE5 #8972EC #B6A8F3 #E3DEFB

Accessibility & contrast

On white

3.70
#8972EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#8972EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8972EC
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8972EC#FFFFFF#000000##000000
##8972EC1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B87F0
Deuteranopia (green-blind)
#3C82E9
Tritanopia (blue-blind)
#6C8CA4
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8972ec;
/* rgb */ color: rgb(137, 114, 236);
/* oklch */ color: oklch(63.2% 0.177 289.0);
Tailwind
colors: {
  custom: {
    50: '#b19bf3',
    500: '#8972ec',
    950: '#000000',
  },
}
SCSS
$custom: #8972ec;
$custom-light: #b19bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#8972ec",
  "rgb": {
    "r": 137,
    "g": 114,
    "b": 236
  },
  "hsl": {
    "h": 251.311,
    "s": 76.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.63171,
    "c": 0.17679,
    "h": 289
  },
  "luminance": 0.23409
}

Semantic roles & 50–950 ramp

primary
#8972EC
secondary
#E8EFCB
accent
#D80DB2
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8972EC

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

Preview Lab → · Contrast checker → · Palette generator →

#8972EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva