#8A62D4#8A62D4

#8A62D4 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.1% C 0.169 H 297.1°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A62D4
RGBrgb(138, 98, 212)
HSLhsl(261, 57%, 61%)
HSVhsv(261, 54%, 83%)
CMYKcmyk(34.9%, 53.8%, 0%, 16.9%)
CIE-LABlab(50.56, 40.69, -53.22)
CIE-LCHlch(50.56, 66.99, 307.40°)
OKLaboklab(59.07% 0.0772 -0.1506)
OKLCHoklch(59.07% 0.169 297.1)
XYZxyz(26.7296, 18.8917, 64.5128)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62D4 #ACD462
analogous
#6273D4 #8A62D4 #C362D4
triadic
#8A62D4 #D48A62 #62D48A
tetradic
#8A62D4 #D46273 #ACD462 #62D4C3
square
#8A62D4 #D46273 #ACD462 #62D4C3
split-complementary
#8A62D4 #D4C362 #73D462
monochromatic
#4E2893 #6735C3 #8A62D4 #AE92E1 #D2C2EE

Accessibility & contrast

On white

4.39
#8A62D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#8A62D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A62D4
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62D4#FFFFFF#000000##000000
##8A62D41.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3279D8
Deuteranopia (green-blind)
#3E77D1
Tritanopia (blue-blind)
#797992
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a62d4;
/* rgb */ color: rgb(138, 98, 212);
/* oklch */ color: oklch(59.1% 0.169 297.1);
Tailwind
colors: {
  custom: {
    50: '#b090e2',
    500: '#8a62d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a62d4;
$custom-light: #b090e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62d4",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 212
  },
  "hsl": {
    "h": 261.053,
    "s": 57,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59074,
    "c": 0.16925,
    "h": 297.1
  },
  "luminance": 0.18892
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A62D4

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

Preview Lab → · Contrast checker → · Palette generator →

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