#8A62D2#8A62D2

#8A62D2 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 58.9% C 0.167 H 297.5°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A62D2
RGBrgb(138, 98, 210)
HSLhsl(261, 55%, 60%)
HSVhsv(261, 53%, 82%)
CMYKcmyk(34.3%, 53.3%, 0%, 17.6%)
CIE-LABlab(50.44, 40.17, -52.27)
CIE-LCHlch(50.44, 65.92, 307.54°)
OKLaboklab(58.95% 0.0771 -0.1478)
OKLCHoklch(58.95% 0.167 297.5)
XYZxyz(26.4789, 18.7914, 63.1923)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62D2 #AAD262
analogous
#6272D2 #8A62D2 #C262D2
triadic
#8A62D2 #D28A62 #62D28A
tetradic
#8A62D2 #D26272 #AAD262 #62D2C2
square
#8A62D2 #D26272 #AAD262 #62D2C2
split-complementary
#8A62D2 #D2C262 #72D262
monochromatic
#4E2990 #6837C0 #8A62D2 #AD92E0 #D1C1ED

Accessibility & contrast

On white

4.41
#8A62D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#8A62D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A62D2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62D2#FFFFFF#000000##000000
##8A62D21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3578D6
Deuteranopia (green-blind)
#4077CF
Tritanopia (blue-blind)
#7A7891
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a62d2;
/* rgb */ color: rgb(138, 98, 210);
/* oklch */ color: oklch(58.9% 0.167 297.5);
Tailwind
colors: {
  custom: {
    50: '#b090e0',
    500: '#8a62d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a62d2;
$custom-light: #b090e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62d2",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 210
  },
  "hsl": {
    "h": 261.429,
    "s": 55.446,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58949,
    "c": 0.16673,
    "h": 297.5
  },
  "luminance": 0.18792
}

Semantic roles & 50–950 ramp

primary
#8A62D2
secondary
#CEDDB3
accent
#C3238A
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A62D2

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

Preview Lab → · Contrast checker → · Palette generator →

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