#8062CE#8062CE

#8062CE is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.7% C 0.161 H 293.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8062CE
RGBrgb(128, 98, 206)
HSLhsl(257, 52%, 60%)
HSVhsv(257, 52%, 81%)
CMYKcmyk(37.9%, 52.4%, 0%, 19.2%)
CIE-LABlab(49.23, 36.65, -51.98)
CIE-LCHlch(49.23, 63.60, 305.19°)
OKLaboklab(57.74% 0.0642 -0.1473)
OKLCHoklch(57.74% 0.161 293.5)
XYZxyz(24.4074, 17.7802, 60.5265)
Luminance0.1778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8062CE #B0CE62
analogous
#627ACE #8062CE #B662CE
triadic
#8062CE #CE8062 #62CE80
tetradic
#8062CE #CE627A #B0CE62 #62CEB6
square
#8062CE #CE627A #B0CE62 #62CEB6
split-complementary
#8062CE #CEB662 #7ACE62
monochromatic
#462B8A #5D3AB9 #8062CE #A691DD #CBBFEB

Accessibility & contrast

On white

4.61
#8062CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8062CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8062CE
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8062CE#FFFFFF#000000##FFFFFF
##8062CE1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3576D2
Deuteranopia (green-blind)
#3B73CC
Tritanopia (blue-blind)
#6C788F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8062ce;
/* rgb */ color: rgb(128, 98, 206);
/* oklch */ color: oklch(57.7% 0.161 293.5);
Tailwind
colors: {
  custom: {
    50: '#a98fdd',
    500: '#8062ce',
    950: '#000000',
  },
}
SCSS
$custom: #8062ce;
$custom-light: #a98fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8062ce",
  "rgb": {
    "r": 128,
    "g": 98,
    "b": 206
  },
  "hsl": {
    "h": 256.667,
    "s": 52.427,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57742,
    "c": 0.16067,
    "h": 293.5
  },
  "luminance": 0.17781
}

Semantic roles & 50–950 ramp

primary
#8062CE
secondary
#CFDBB1
accent
#DC4CB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #8062CE

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

Preview Lab → · Contrast checker → · Palette generator →

#8062CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva