#8A62EC#8A62EC

#8A62EC is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.7% C 0.199 H 292.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A62EC
RGBrgb(138, 98, 236)
HSLhsl(257, 78%, 65%)
HSVhsv(257, 58%, 93%)
CMYKcmyk(41.5%, 58.5%, 0%, 7.5%)
CIE-LABlab(52.06, 47.03, -64.37)
CIE-LCHlch(52.06, 79.72, 306.15°)
OKLaboklab(60.65% 0.0773 -0.1834)
OKLCHoklch(60.65% 0.199 292.9)
XYZxyz(29.9851, 20.1939, 81.6586)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62EC #C4EC62
analogous
#627FEC #8A62EC #CF62EC
triadic
#8A62EC #EC8A62 #62EC8A
tetradic
#8A62EC #EC627F #C4EC62 #62ECCF
square
#8A62EC #EC627F #C4EC62 #62ECCF
split-complementary
#8A62EC #ECCF62 #7FEC62
monochromatic
#4717BD #612BE5 #8A62EC #B399F3 #DBCFF9

Accessibility & contrast

On white

4.17
#8A62EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8A62EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A62EC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62EC#FFFFFF#000000##000000
##8A62EC1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF1
Deuteranopia (green-blind)
#157AE9
Tritanopia (blue-blind)
#6F809E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a62ec;
/* rgb */ color: rgb(138, 98, 236);
/* oklch */ color: oklch(60.7% 0.199 292.9);
Tailwind
colors: {
  custom: {
    50: '#b290f3',
    500: '#8a62ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a62ec;
$custom-light: #b290f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62ec",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 236
  },
  "hsl": {
    "h": 257.391,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.60654,
    "c": 0.19903,
    "h": 292.9
  },
  "luminance": 0.20195
}

Semantic roles & 50–950 ramp

primary
#8A62EC
secondary
#DFECBE
accent
#DB0B9E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110D17
muted
#807D85

Preview Lab

Preview with #8A62EC

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

Preview Lab → · Contrast checker → · Palette generator →

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