#8062CB#8062CB

#8062CB is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.6% C 0.157 H 294.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8062CB
RGBrgb(128, 98, 203)
HSLhsl(257, 50%, 59%)
HSVhsv(257, 52%, 80%)
CMYKcmyk(36.9%, 51.7%, 0%, 20.4%)
CIE-LABlab(49.05, 35.84, -50.55)
CIE-LCHlch(49.05, 61.96, 305.34°)
OKLaboklab(57.55% 0.064 -0.1431)
OKLCHoklch(57.55% 0.157 294.1)
XYZxyz(24.0465, 17.6359, 58.6255)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8062CB #ADCB62
analogous
#6279CB #8062CB #B562CB
triadic
#8062CB #CB8062 #62CB80
tetradic
#8062CB #CB6279 #ADCB62 #62CBB5
square
#8062CB #CB6279 #ADCB62 #62CBB5
split-complementary
#8062CB #CBB562 #79CB62
monochromatic
#462C86 #5E3CB4 #8062CB #A590DA #CABEE9

Accessibility & contrast

On white

4.64
#8062CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8062CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8062CB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8062CB#FFFFFF#000000##FFFFFF
##8062CB1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3876CF
Deuteranopia (green-blind)
#3E73C9
Tritanopia (blue-blind)
#6E778D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8062cb;
/* rgb */ color: rgb(128, 98, 203);
/* oklch */ color: oklch(57.6% 0.157 294.1);
Tailwind
colors: {
  custom: {
    50: '#a98fdb',
    500: '#8062cb',
    950: '#000000',
  },
}
SCSS
$custom: #8062cb;
$custom-light: #a98fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8062cb",
  "rgb": {
    "r": 128,
    "g": 98,
    "b": 203
  },
  "hsl": {
    "h": 257.143,
    "s": 50.239,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57554,
    "c": 0.15675,
    "h": 294.1
  },
  "luminance": 0.17636
}

Semantic roles & 50–950 ramp

primary
#8062CB
secondary
#CDD9B0
accent
#DA4EB2
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #8062CB

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

Preview Lab → · Contrast checker → · Palette generator →

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