#8A62DC#8A62DC

#8A62DC is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.6% C 0.179 H 295.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A62DC
RGBrgb(138, 98, 220)
HSLhsl(260, 64%, 62%)
HSVhsv(260, 55%, 86%)
CMYKcmyk(37.3%, 55.5%, 0%, 13.7%)
CIE-LABlab(51.04, 42.78, -56.99)
CIE-LCHlch(51.04, 71.26, 306.89°)
OKLaboklab(59.59% 0.0774 -0.1617)
OKLCHoklch(59.59% 0.179 295.6)
XYZxyz(27.7639, 19.3054, 69.9598)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62DC #B4DC62
analogous
#6277DC #8A62DC #C762DC
triadic
#8A62DC #DC8A62 #62DC8A
tetradic
#8A62DC #DC6277 #B4DC62 #62DCC7
square
#8A62DC #DC6277 #B4DC62 #62DCC7
split-complementary
#8A62DC #DCC762 #77DC62
monochromatic
#4C24A0 #6530D1 #8A62DC #AF94E7 #D5C6F2

Accessibility & contrast

On white

4.32
#8A62DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8A62DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A62DC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62DC#FFFFFF#000000##000000
##8A62DC1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#277AE0
Deuteranopia (green-blind)
#3578D9
Tritanopia (blue-blind)
#767B96
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a62dc;
/* rgb */ color: rgb(138, 98, 220);
/* oklch */ color: oklch(59.6% 0.179 295.6);
Tailwind
colors: {
  custom: {
    50: '#b190e7',
    500: '#8a62dc',
    950: '#000000',
  },
}
SCSS
$custom: #8a62dc;
$custom-light: #b190e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62dc",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 259.672,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59586,
    "c": 0.17927,
    "h": 295.6
  },
  "luminance": 0.19306
}

Semantic roles & 50–950 ramp

primary
#8A62DC
secondary
#D5E3B7
accent
#CB1A91
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A62DC

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

Preview Lab → · Contrast checker → · Palette generator →

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