#8A74E7#8A74E7

#8A74E7 is a light, vivid violet. Relative luminance 0.237; OKLCH L 63.3% C 0.167 H 289.5°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A74E7
RGBrgb(138, 116, 231)
HSLhsl(251, 71%, 68%)
HSVhsv(251, 50%, 91%)
CMYKcmyk(40.3%, 49.8%, 0%, 9.4%)
CIE-LABlab(55.75, 35.45, -55.64)
CIE-LCHlch(55.75, 65.98, 302.51°)
OKLaboklab(63.29% 0.056 -0.1577)
OKLCHoklch(63.29% 0.167 289.5)
XYZxyz(31.1464, 23.6626, 78.5121)
Luminance0.2366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74E7 #D1E774
analogous
#7497E7 #8A74E7 #C374E7
triadic
#8A74E7 #E78A74 #74E78A
tetradic
#8A74E7 #E77497 #D1E774 #74E7C3
square
#8A74E7 #E77497 #D1E774 #74E7C3
split-complementary
#8A74E7 #E7C374 #97E774
monochromatic
#3F21C0 #5E40DE #8A74E7 #B6A8F0 #E2DCF9

Accessibility & contrast

On white

3.66
#8A74E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#8A74E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74E7
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74E7#FFFFFF#000000##000000
##8A74E71.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4588EB
Deuteranopia (green-blind)
#4683E4
Tritanopia (blue-blind)
#708CA3
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a74e7;
/* rgb */ color: rgb(138, 116, 231);
/* oklch */ color: oklch(63.3% 0.167 289.5);
Tailwind
colors: {
  custom: {
    50: '#b19cef',
    500: '#8a74e7',
    950: '#000000',
  },
}
SCSS
$custom: #8a74e7;
$custom-light: #b19cef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74e7",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 231
  },
  "hsl": {
    "h": 251.478,
    "s": 70.552,
    "l": 68.039
  },
  "oklch": {
    "l": 0.63291,
    "c": 0.16735,
    "h": 289.5
  },
  "luminance": 0.23664
}

Semantic roles & 50–950 ramp

primary
#8A74E7
secondary
#E6EDCA
accent
#D313AE
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A74E7

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

Preview Lab → · Contrast checker → · Palette generator →

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