#6021A4#6021A4

#6021A4 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.192 H 299.6°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#6021A4
RGBrgb(96, 33, 164)
HSLhsl(269, 66%, 39%)
HSVhsv(269, 80%, 64%)
CMYKcmyk(41.5%, 79.9%, 0%, 35.7%)
CIE-LABlab(30.05, 52.82, -58.50)
CIE-LCHlch(30.05, 78.82, 312.08°)
OKLaboklab(42.11% 0.095 -0.1673)
OKLCHoklch(42.11% 0.192 299.6)
XYZxyz(12.0669, 6.2547, 35.6863)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6021A4 #65A421
analogous
#2123A4 #6021A4 #A121A4
triadic
#6021A4 #A46021 #21A460
tetradic
#6021A4 #A42123 #65A421 #21A4A1
square
#6021A4 #A42123 #65A421 #21A4A1
split-complementary
#6021A4 #A4A121 #23A421
monochromatic
#240C3E #421771 #6021A4 #7E2DD5 #9D60DF

Accessibility & contrast

On white

9.33
#6021A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6021A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6021A4
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6021A4#FFFFFF#000000##FFFFFF
##6021A41.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#504563
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6021a4;
/* rgb */ color: rgb(96, 33, 164);
/* oklch */ color: oklch(42.1% 0.192 299.6);
Tailwind
colors: {
  custom: {
    50: '#9464c0',
    500: '#6021a4',
    950: '#000000',
  },
}
SCSS
$custom: #6021a4;
$custom-light: #9464c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6021a4",
  "rgb": {
    "r": 96,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 268.855,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42107,
    "c": 0.19241,
    "h": 299.6
  },
  "luminance": 0.06255
}

Semantic roles & 50–950 ramp

primary
#6021A4
secondary
#92C45D
accent
#E93E97
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6021A4

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

Preview Lab → · Contrast checker → · Palette generator →

#6021A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva