#6B20B1#6B20B1

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

Color values

HEX#6B20B1
RGBrgb(107, 32, 177)
HSLhsl(271, 69%, 41%)
HSVhsv(271, 82%, 69%)
CMYKcmyk(39.5%, 81.9%, 0%, 30.6%)
CIE-LABlab(32.55, 57.97, -62.15)
CIE-LCHlch(32.55, 84.99, 313.01°)
OKLaboklab(44.52% 0.1082 -0.1776)
OKLCHoklch(44.52% 0.208 301.3)
XYZxyz(14.5138, 7.3331, 42.2372)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B20B1 #66B120
analogous
#2220B1 #6B20B1 #B120AE
triadic
#6B20B1 #B16B20 #20B16B
tetradic
#6B20B1 #B12220 #66B120 #20AEB1
square
#6B20B1 #B12220 #66B120 #20AEB1
split-complementary
#6B20B1 #AEB120 #20B122
monochromatic
#2C0D49 #4C177D #6B20B1 #8A34DA #A868E4

Accessibility & contrast

On white

8.51
#6B20B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6B20B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B20B1
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B20B1#FFFFFF#000000##FFFFFF
##6B20B11.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b20b1;
/* rgb */ color: rgb(107, 32, 177);
/* oklch */ color: oklch(44.5% 0.208 301.3);
Tailwind
colors: {
  custom: {
    50: '#9c66c9',
    500: '#6b20b1',
    950: '#000000',
  },
}
SCSS
$custom: #6b20b1;
$custom-light: #9c66c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6b20b1",
  "rgb": {
    "r": 107,
    "g": 32,
    "b": 177
  },
  "hsl": {
    "h": 271.034,
    "s": 69.378,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44522,
    "c": 0.20798,
    "h": 301.3
  },
  "luminance": 0.07333
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B20B1

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

Preview Lab → · Contrast checker → · Palette generator →

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