#6A20B1#6A20B1

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

Color values

HEX#6A20B1
RGBrgb(106, 32, 177)
HSLhsl(271, 69%, 41%)
HSVhsv(271, 82%, 69%)
CMYKcmyk(40.1%, 81.9%, 0%, 30.6%)
CIE-LABlab(32.42, 57.82, -62.38)
CIE-LCHlch(32.42, 85.05, 312.83°)
OKLaboklab(44.4% 0.1067 -0.1783)
OKLCHoklch(44.4% 0.208 300.9)
XYZxyz(14.3942, 7.2714, 42.2316)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A20B1 #67B120
analogous
#2220B1 #6A20B1 #B120AF
triadic
#6A20B1 #B16A20 #20B16A
tetradic
#6A20B1 #B12220 #67B120 #20AFB1
square
#6A20B1 #B12220 #67B120 #20AFB1
split-complementary
#6A20B1 #AFB120 #20B122
monochromatic
#2C0D49 #4B177D #6A20B1 #8934DA #A768E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6A20B1#FFFFFF#000000##FFFFFF
##6A20B11.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)
#004CB5
Deuteranopia (green-blind)
#004BAE
Tritanopia (blue-blind)
#5A496A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6a20b1;
/* rgb */ color: rgb(106, 32, 177);
/* oklch */ color: oklch(44.4% 0.208 300.9);
Tailwind
colors: {
  custom: {
    50: '#9c66c9',
    500: '#6a20b1',
    950: '#000000',
  },
}
SCSS
$custom: #6a20b1;
$custom-light: #9c66c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6a20b1",
  "rgb": {
    "r": 106,
    "g": 32,
    "b": 177
  },
  "hsl": {
    "h": 270.621,
    "s": 69.378,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44398,
    "c": 0.20782,
    "h": 300.9
  },
  "luminance": 0.07272
}

Semantic roles & 50–950 ramp

primary
#6A20B1
secondary
#95C964
accent
#EC3C92
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A20B1

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

Preview Lab → · Contrast checker → · Palette generator →

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