#6C21BD#6C21BD

#6C21BD is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.8% C 0.219 H 298.7°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#6C21BD
RGBrgb(108, 33, 189)
HSLhsl(269, 70%, 44%)
HSVhsv(269, 83%, 74%)
CMYKcmyk(42.9%, 82.5%, 0%, 25.9%)
CIE-LABlab(33.88, 60.57, -67.09)
CIE-LCHlch(33.88, 90.39, 312.08°)
OKLaboklab(45.8% 0.1051 -0.1921)
OKLCHoklch(45.8% 0.219 298.7)
XYZxyz(15.9111, 7.9497, 48.8304)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C21BD #72BD21
analogous
#2124BD #6C21BD #BA21BD
triadic
#6C21BD #BD6C21 #21BD6C
tetradic
#6C21BD #BD2124 #72BD21 #21BDBA
square
#6C21BD #BD2124 #72BD21 #21BDBA
split-complementary
#6C21BD #BDBA21 #24BD21
monochromatic
#300F55 #4E1889 #6C21BD #8B3EDD #AA72E6

Accessibility & contrast

On white

8.11
#6C21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6C21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C21BD
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C21BD#FFFFFF#000000##FFFFFF
##6C21BD1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#574F71
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c21bd;
/* rgb */ color: rgb(108, 33, 189);
/* oklch */ color: oklch(45.8% 0.219 298.7);
Tailwind
colors: {
  custom: {
    50: '#9e67d2',
    500: '#6c21bd',
    950: '#000000',
  },
}
SCSS
$custom: #6c21bd;
$custom-light: #9e67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6c21bd",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 268.846,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45795,
    "c": 0.21896,
    "h": 298.7
  },
  "luminance": 0.0795
}

Semantic roles & 50–950 ramp

primary
#6C21BD
secondary
#9FCD6D
accent
#ED3B97
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #6C21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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