#6B21AE#6B21AE

#6B21AE is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.3% C 0.204 H 302.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#6B21AE
RGBrgb(107, 33, 174)
HSLhsl(271, 68%, 41%)
HSVhsv(271, 81%, 68%)
CMYKcmyk(38.5%, 81%, 0%, 31.8%)
CIE-LABlab(32.41, 56.92, -60.59)
CIE-LCHlch(32.41, 83.13, 313.21°)
OKLaboklab(44.34% 0.1084 -0.1731)
OKLCHoklch(44.34% 0.204 302.1)
XYZxyz(14.2454, 7.2694, 40.6888)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B21AE #64AE21
analogous
#2421AE #6B21AE #AE21AA
triadic
#6B21AE #AE6B21 #21AE6B
tetradic
#6B21AE #AE2421 #64AE21 #21AAAE
square
#6B21AE #AE2421 #64AE21 #21AAAE
split-complementary
#6B21AE #AAAE21 #21AE24
monochromatic
#2C0D47 #4B177B #6B21AE #8A34D8 #A867E2

Accessibility & contrast

On white

8.56
#6B21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#6B21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B21AE
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B21AE#FFFFFF#000000##FFFFFF
##6B21AE1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#004CAB
Tritanopia (blue-blind)
#5C4868
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6b21ae;
/* rgb */ color: rgb(107, 33, 174);
/* oklch */ color: oklch(44.3% 0.204 302.1);
Tailwind
colors: {
  custom: {
    50: '#9c66c7',
    500: '#6b21ae',
    950: '#000000',
  },
}
SCSS
$custom: #6b21ae;
$custom-light: #9c66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b21ae",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 271.489,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44343,
    "c": 0.20419,
    "h": 302.1
  },
  "luminance": 0.0727
}

Semantic roles & 50–950 ramp

primary
#6B21AE
secondary
#93C863
accent
#EB3D90
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6B21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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