#6021AA#6021AA

#6021AA is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.199 H 298.0°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#6021AA
RGBrgb(96, 33, 170)
HSLhsl(268, 67%, 40%)
HSVhsv(268, 81%, 67%)
CMYKcmyk(43.5%, 80.6%, 0%, 33.3%)
CIE-LABlab(30.58, 54.30, -61.24)
CIE-LCHlch(30.58, 81.84, 311.56°)
OKLaboklab(42.65% 0.0931 -0.1754)
OKLCHoklch(42.65% 0.199 298)
XYZxyz(12.6215, 6.4766, 38.6075)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6021AA #6BAA21
analogous
#2127AA #6021AA #A521AA
triadic
#6021AA #AA6021 #21AA60
tetradic
#6021AA #AA2127 #6BAA21 #21AAA5
square
#6021AA #AA2127 #6BAA21 #21AAA5
split-complementary
#6021AA #AAA521 #27AA21
monochromatic
#260D43 #431777 #6021AA #7D31D7 #9E64E1

Accessibility & contrast

On white

9.15
#6021AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#6021AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6021AA#FFFFFF#000000##FFFFFF
##6021AA1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#4D4866
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6021aa;
/* rgb */ color: rgb(96, 33, 170);
/* oklch */ color: oklch(42.6% 0.199 298.0);
Tailwind
colors: {
  custom: {
    50: '#9565c4',
    500: '#6021aa',
    950: '#000000',
  },
}
SCSS
$custom: #6021aa;
$custom-light: #9565c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6021aa",
  "rgb": {
    "r": 96,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 267.591,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42646,
    "c": 0.19856,
    "h": 298
  },
  "luminance": 0.06477
}

Semantic roles & 50–950 ramp

primary
#6021AA
secondary
#97C661
accent
#EA3D9B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6021AA

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

Preview Lab → · Contrast checker → · Palette generator →

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