#8A74EC#8A74EC

#8A74EC is a light, vivid violet. Relative luminance 0.239; OKLCH L 63.6% C 0.174 H 288.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A74EC
RGBrgb(138, 116, 236)
HSLhsl(251, 76%, 69%)
HSVhsv(251, 51%, 93%)
CMYKcmyk(41.5%, 50.8%, 0%, 7.5%)
CIE-LABlab(56.04, 36.83, -57.97)
CIE-LCHlch(56.04, 68.68, 302.43°)
OKLaboklab(63.6% 0.0564 -0.1645)
OKLCHoklch(63.6% 0.174 288.9)
XYZxyz(31.8627, 23.9491, 82.2844)
Luminance0.2395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74EC #D6EC74
analogous
#749AEC #8A74EC #C674EC
triadic
#8A74EC #EC8A74 #74EC8A
tetradic
#8A74EC #EC749A #D6EC74 #74ECC6
square
#8A74EC #EC749A #D6EC74 #74ECC6
split-complementary
#8A74EC #ECC674 #9AEC74
monochromatic
#3C1CCA #5D3EE5 #8A74EC #B7AAF3 #E5E0FB

Accessibility & contrast

On white

3.63
#8A74EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#8A74EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74EC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74EC#FFFFFF#000000##000000
##8A74EC1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4089F0
Deuteranopia (green-blind)
#4183E9
Tritanopia (blue-blind)
#6E8DA5
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a74ec;
/* rgb */ color: rgb(138, 116, 236);
/* oklch */ color: oklch(63.6% 0.174 288.9);
Tailwind
colors: {
  custom: {
    50: '#b19cf3',
    500: '#8a74ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a74ec;
$custom-light: #b19cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74ec",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 236
  },
  "hsl": {
    "h": 251,
    "s": 75.949,
    "l": 69.02
  },
  "oklch": {
    "l": 0.63599,
    "c": 0.17393,
    "h": 288.9
  },
  "luminance": 0.2395
}

Semantic roles & 50–950 ramp

primary
#8A74EC
secondary
#E9EFCC
accent
#D80DB3
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A74EC

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

Preview Lab → · Contrast checker → · Palette generator →

#8A74EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva