#8A62EB#8A62EB

#8A62EB is a mid, vivid violet. Relative luminance 0.201; OKLCH L 60.6% C 0.198 H 293.0°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A62EB
RGBrgb(138, 98, 235)
HSLhsl(258, 77%, 65%)
HSVhsv(258, 58%, 92%)
CMYKcmyk(41.3%, 58.3%, 0%, 7.8%)
CIE-LABlab(51.99, 46.76, -63.92)
CIE-LCHlch(51.99, 79.20, 306.19°)
OKLaboklab(60.59% 0.0774 -0.1821)
OKLCHoklch(60.59% 0.198 293)
XYZxyz(29.8403, 20.1360, 80.8956)
Luminance0.2014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62EB #C3EB62
analogous
#627FEB #8A62EB #CE62EB
triadic
#8A62EB #EB8A62 #62EB8A
tetradic
#8A62EB #EB627F #C3EB62 #62EBCE
square
#8A62EB #EB627F #C3EB62 #62EBCE
split-complementary
#8A62EB #EBCE62 #7FEB62
monochromatic
#4718BB #622CE4 #8A62EB #B298F2 #DBCFF9

Accessibility & contrast

On white

4.18
#8A62EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#8A62EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A62EB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62EB#FFFFFF#000000##000000
##8A62EB1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EEF
Deuteranopia (green-blind)
#1879E8
Tritanopia (blue-blind)
#70809D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a62eb;
/* rgb */ color: rgb(138, 98, 235);
/* oklch */ color: oklch(60.6% 0.198 293.0);
Tailwind
colors: {
  custom: {
    50: '#b290f2',
    500: '#8a62eb',
    950: '#000000',
  },
}
SCSS
$custom: #8a62eb;
$custom-light: #b290f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62eb",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 235
  },
  "hsl": {
    "h": 257.518,
    "s": 77.401,
    "l": 65.294
  },
  "oklch": {
    "l": 0.60586,
    "c": 0.19781,
    "h": 293
  },
  "luminance": 0.20137
}

Semantic roles & 50–950 ramp

primary
#8A62EB
secondary
#DEEBBD
accent
#DA0C9E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110D17
muted
#807D85

Preview Lab

Preview with #8A62EB

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

Preview Lab → · Contrast checker → · Palette generator →

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