#8A62D3#8A62D3

#8A62D3 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.0% C 0.168 H 297.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8A62D3
RGBrgb(138, 98, 211)
HSLhsl(261, 56%, 61%)
HSVhsv(261, 54%, 83%)
CMYKcmyk(34.6%, 53.6%, 0%, 17.3%)
CIE-LABlab(50.50, 40.43, -52.75)
CIE-LCHlch(50.50, 66.46, 307.47°)
OKLaboklab(59.01% 0.0771 -0.1492)
OKLCHoklch(59.01% 0.168 297.3)
XYZxyz(26.6039, 18.8414, 63.8505)
Luminance0.1884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62D3 #ABD362
analogous
#6272D3 #8A62D3 #C262D3
triadic
#8A62D3 #D38A62 #62D38A
tetradic
#8A62D3 #D36272 #ABD362 #62D3C2
square
#8A62D3 #D36272 #ABD362 #62D3C2
split-complementary
#8A62D3 #D3C262 #72D362
monochromatic
#4E2992 #6836C2 #8A62D3 #AE92E0 #D1C2EE

Accessibility & contrast

On white

4.40
#8A62D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#8A62D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A62D3
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62D3#FFFFFF#000000##000000
##8A62D31.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3479D7
Deuteranopia (green-blind)
#3F77D0
Tritanopia (blue-blind)
#7A7991
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a62d3;
/* rgb */ color: rgb(138, 98, 211);
/* oklch */ color: oklch(59.0% 0.168 297.3);
Tailwind
colors: {
  custom: {
    50: '#b090e1',
    500: '#8a62d3',
    950: '#000000',
  },
}
SCSS
$custom: #8a62d3;
$custom-light: #b090e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62d3",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 211
  },
  "hsl": {
    "h": 261.239,
    "s": 56.219,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59012,
    "c": 0.16799,
    "h": 297.3
  },
  "luminance": 0.18842
}

Semantic roles & 50–950 ramp

primary
#8A62D3
secondary
#CFDEB3
accent
#C4228A
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A62D3

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

Preview Lab → · Contrast checker → · Palette generator →

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