#8A62E4#8A62E4

#8A62E4 is a mid, vivid violet. Relative luminance 0.197; OKLCH L 60.1% C 0.189 H 294.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A62E4
RGBrgb(138, 98, 228)
HSLhsl(258, 71%, 64%)
HSVhsv(258, 57%, 89%)
CMYKcmyk(39.5%, 57%, 0%, 10.6%)
CIE-LABlab(51.54, 44.89, -60.71)
CIE-LCHlch(51.54, 75.50, 306.48°)
OKLaboklab(60.11% 0.0775 -0.1726)
OKLCHoklch(60.11% 0.189 294.2)
XYZxyz(28.8488, 19.7394, 75.6739)
Luminance0.1974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62E4 #BCE462
analogous
#627BE4 #8A62E4 #CB62E4
triadic
#8A62E4 #E48A62 #62E48A
tetradic
#8A62E4 #E4627B #BCE462 #62E4CB
square
#8A62E4 #E4627B #BCE462 #62E4CB
split-complementary
#8A62E4 #E4CB62 #7BE462
monochromatic
#4A1EAE #632EDB #8A62E4 #B196ED #D8CAF6

Accessibility & contrast

On white

4.24
#8A62E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8A62E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A62E4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62E4#FFFFFF#000000##000000
##8A62E41.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#177CE8
Deuteranopia (green-blind)
#2879E1
Tritanopia (blue-blind)
#737E9A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a62e4;
/* rgb */ color: rgb(138, 98, 228);
/* oklch */ color: oklch(60.1% 0.189 294.2);
Tailwind
colors: {
  custom: {
    50: '#b190ed',
    500: '#8a62e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a62e4;
$custom-light: #b190ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62e4",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 228
  },
  "hsl": {
    "h": 258.462,
    "s": 70.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.60112,
    "c": 0.1892,
    "h": 294.2
  },
  "luminance": 0.1974
}

Semantic roles & 50–950 ramp

primary
#8A62E4
secondary
#DAE8BA
accent
#D31398
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110D16
muted
#807D84

Preview Lab

Preview with #8A62E4

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

Preview Lab → · Contrast checker → · Palette generator →

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