#6B21AA#6B21AA

#6B21AA is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.0% C 0.200 H 303.2°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#6B21AA
RGBrgb(107, 33, 170)
HSLhsl(272, 67%, 40%)
HSVhsv(272, 81%, 67%)
CMYKcmyk(37.1%, 80.6%, 0%, 33.3%)
CIE-LABlab(32.07, 55.99, -58.75)
CIE-LCHlch(32.07, 81.16, 313.62°)
OKLaboklab(44% 0.1095 -0.1677)
OKLCHoklch(44% 0.2 303.2)
XYZxyz(13.8612, 7.1158, 38.6656)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B21AA #60AA21
analogous
#2721AA #6B21AA #AA21A5
triadic
#6B21AA #AA6B21 #21AA6B
tetradic
#6B21AA #AA2721 #60AA21 #21A5AA
square
#6B21AA #AA2721 #60AA21 #21A5AA
split-complementary
#6B21AA #A5AA21 #21AA27
monochromatic
#2A0D43 #4B1777 #6B21AA #8B31D7 #A864E1

Accessibility & contrast

On white

8.67
#6B21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6B21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B21AA
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B21AA#FFFFFF#000000##FFFFFF
##6B21AA1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#004BA7
Tritanopia (blue-blind)
#5E4666
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6b21aa;
/* rgb */ color: rgb(107, 33, 170);
/* oklch */ color: oklch(44.0% 0.200 303.2);
Tailwind
colors: {
  custom: {
    50: '#9c66c4',
    500: '#6b21aa',
    950: '#000000',
  },
}
SCSS
$custom: #6b21aa;
$custom-light: #9c66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b21aa",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 272.409,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43999,
    "c": 0.20028,
    "h": 303.2
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

primary
#6B21AA
secondary
#8FC661
accent
#EA3D8D
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6B21AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6B21AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva