#6420A8#6420A8

#6420A8 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.9% C 0.198 H 300.5°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#6420A8
RGBrgb(100, 32, 168)
HSLhsl(270, 68%, 39%)
HSVhsv(270, 81%, 66%)
CMYKcmyk(40.5%, 81%, 0%, 34.1%)
CIE-LABlab(30.81, 54.79, -59.65)
CIE-LCHlch(30.81, 81.00, 312.57°)
OKLaboklab(42.86% 0.1005 -0.1706)
OKLCHoklch(42.86% 0.198 300.5)
XYZxyz(12.8382, 6.5694, 37.6298)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6420A8 #64A820
analogous
#2020A8 #6420A8 #A820A8
triadic
#6420A8 #A86420 #20A864
tetradic
#6420A8 #A82020 #64A820 #20A8A8
square
#6420A8 #A82020 #64A820 #20A8A8
split-complementary
#6420A8 #A8A820 #20A820
monochromatic
#270C41 #451675 #6420A8 #832ED7 #A161E1

Accessibility & contrast

On white

9.08
#6420A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6420A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6420A8
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6420A8#FFFFFF#000000##FFFFFF
##6420A81.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0048A5
Tritanopia (blue-blind)
#544665
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6420a8;
/* rgb */ color: rgb(100, 32, 168);
/* oklch */ color: oklch(42.9% 0.198 300.5);
Tailwind
colors: {
  custom: {
    50: '#9765c3',
    500: '#6420a8',
    950: '#000000',
  },
}
SCSS
$custom: #6420a8;
$custom-light: #9765c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6420a8",
  "rgb": {
    "r": 100,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 270,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42861,
    "c": 0.19799,
    "h": 300.5
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#6420A8
secondary
#92C65E
accent
#EB3D94
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6420A8

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

Preview Lab → · Contrast checker → · Palette generator →

#6420A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva