#6C20B1#6C20B1

#6C20B1 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.6% C 0.208 H 301.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#6C20B1
RGBrgb(108, 32, 177)
HSLhsl(271, 69%, 41%)
HSVhsv(271, 82%, 69%)
CMYKcmyk(39%, 81.9%, 0%, 30.6%)
CIE-LABlab(32.69, 58.12, -61.92)
CIE-LCHlch(32.69, 84.92, 313.19°)
OKLaboklab(44.65% 0.1096 -0.1769)
OKLCHoklch(44.65% 0.208 301.8)
XYZxyz(14.6347, 7.3954, 42.2429)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C20B1 #65B120
analogous
#2320B1 #6C20B1 #B120AD
triadic
#6C20B1 #B16C20 #20B16C
tetradic
#6C20B1 #B12320 #65B120 #20ADB1
square
#6C20B1 #B12320 #65B120 #20ADB1
split-complementary
#6C20B1 #ADB120 #20B123
monochromatic
#2D0D49 #4C177D #6C20B1 #8B34DA #A968E4

Accessibility & contrast

On white

8.47
#6C20B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6C20B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C20B1
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C20B1#FFFFFF#000000##FFFFFF
##6C20B11.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#004CAE
Tritanopia (blue-blind)
#5D496A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6c20b1;
/* rgb */ color: rgb(108, 32, 177);
/* oklch */ color: oklch(44.6% 0.208 301.8);
Tailwind
colors: {
  custom: {
    50: '#9d66c9',
    500: '#6c20b1',
    950: '#000000',
  },
}
SCSS
$custom: #6c20b1;
$custom-light: #9d66c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6c20b1",
  "rgb": {
    "r": 108,
    "g": 32,
    "b": 177
  },
  "hsl": {
    "h": 271.448,
    "s": 69.378,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44646,
    "c": 0.20815,
    "h": 301.8
  },
  "luminance": 0.07395
}

Semantic roles & 50–950 ramp

primary
#6C20B1
secondary
#94C964
accent
#EC3C90
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6C20B1

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

Preview Lab → · Contrast checker → · Palette generator →

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