#6C20BA#6C20BA

#6C20BA is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.4% C 0.217 H 299.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#6C20BA
RGBrgb(108, 32, 186)
HSLhsl(270, 71%, 43%)
HSVhsv(270, 83%, 73%)
CMYKcmyk(41.9%, 82.8%, 0%, 27.1%)
CIE-LABlab(33.49, 60.21, -65.95)
CIE-LCHlch(33.49, 89.30, 312.39°)
OKLaboklab(45.45% 0.1067 -0.1888)
OKLCHoklch(45.45% 0.217 299.5)
XYZxyz(15.5615, 7.7661, 47.1240)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C20BA #6EBA20
analogous
#2021BA #6C20BA #B920BA
triadic
#6C20BA #BA6C20 #20BA6C
tetradic
#6C20BA #BA2021 #6EBA20 #20BAB9
square
#6C20BA #BA2021 #6EBA20 #20BAB9
split-complementary
#6C20BA #BAB920 #21BA20
monochromatic
#2F0E52 #4E1786 #6C20BA #8B3ADD #A96EE6

Accessibility & contrast

On white

8.22
#6C20BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6C20BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C20BA
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C20BA#FFFFFF#000000##FFFFFF
##6C20BA1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#594D6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c20ba;
/* rgb */ color: rgb(108, 32, 186);
/* oklch */ color: oklch(45.4% 0.217 299.5);
Tailwind
colors: {
  custom: {
    50: '#9e67d0',
    500: '#6c20ba',
    950: '#000000',
  },
}
SCSS
$custom: #6c20ba;
$custom-light: #9e67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c20ba",
  "rgb": {
    "r": 108,
    "g": 32,
    "b": 186
  },
  "hsl": {
    "h": 269.61,
    "s": 70.642,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45445,
    "c": 0.21685,
    "h": 299.5
  },
  "luminance": 0.07766
}

Semantic roles & 50–950 ramp

primary
#6C20BA
secondary
#9CCC69
accent
#ED3A95
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6C20BA

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

Preview Lab → · Contrast checker → · Palette generator →

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