#8A74EB#8A74EB

#8A74EB is a light, vivid violet. Relative luminance 0.239; OKLCH L 63.5% C 0.173 H 289.0°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8A74EB
RGBrgb(138, 116, 235)
HSLhsl(251, 75%, 69%)
HSVhsv(251, 51%, 92%)
CMYKcmyk(41.3%, 50.6%, 0%, 7.8%)
CIE-LABlab(55.98, 36.56, -57.51)
CIE-LCHlch(55.98, 68.14, 302.44°)
OKLaboklab(63.54% 0.0563 -0.1632)
OKLCHoklch(63.54% 0.173 289)
XYZxyz(31.7178, 23.8912, 81.5214)
Luminance0.2389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74EB #D5EB74
analogous
#749AEB #8A74EB #C674EB
triadic
#8A74EB #EB8A74 #74EB8A
tetradic
#8A74EB #EB749A #D5EB74 #74EBC6
square
#8A74EB #EB749A #D5EB74 #74EBC6
split-complementary
#8A74EB #EBC674 #9AEB74
monochromatic
#3C1DC8 #5D3EE3 #8A74EB #B7AAF3 #E4DFFA

Accessibility & contrast

On white

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

On black

5.78
#8A74EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74EB
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74EB#FFFFFF#000000##000000
##8A74EB1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4189EF
Deuteranopia (green-blind)
#4283E8
Tritanopia (blue-blind)
#6E8DA5
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a74eb;
/* rgb */ color: rgb(138, 116, 235);
/* oklch */ color: oklch(63.5% 0.173 289.0);
Tailwind
colors: {
  custom: {
    50: '#b19cf2',
    500: '#8a74eb',
    950: '#000000',
  },
}
SCSS
$custom: #8a74eb;
$custom-light: #b19cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74eb",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 235
  },
  "hsl": {
    "h": 251.092,
    "s": 74.843,
    "l": 68.824
  },
  "oklch": {
    "l": 0.63537,
    "c": 0.17262,
    "h": 289
  },
  "luminance": 0.23892
}

Semantic roles & 50–950 ramp

primary
#8A74EB
secondary
#E8EFCC
accent
#D70FB2
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A74EB

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

Preview Lab → · Contrast checker → · Palette generator →

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