#6D21B0#6D21B0

#6D21B0 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.8% C 0.206 H 302.4°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#6D21B0
RGBrgb(109, 33, 176)
HSLhsl(272, 68%, 41%)
HSVhsv(272, 81%, 69%)
CMYKcmyk(38.1%, 81.3%, 0%, 31%)
CIE-LABlab(32.86, 57.69, -61.04)
CIE-LCHlch(32.86, 83.98, 313.38°)
OKLaboklab(44.77% 0.1107 -0.1743)
OKLCHoklch(44.77% 0.207 302.4)
XYZxyz(14.6851, 7.4735, 41.7347)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D21B0 #64B021
analogous
#2521B0 #6D21B0 #B021AB
triadic
#6D21B0 #B06D21 #21B06D
tetradic
#6D21B0 #B02521 #64B021 #21ABB0
square
#6D21B0 #B02521 #64B021 #21ABB0
split-complementary
#6D21B0 #ABB021 #21B025
monochromatic
#2D0E49 #4D177C #6D21B0 #8C35D9 #AA69E3

Accessibility & contrast

On white

8.42
#6D21B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6D21B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D21B0
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D21B0#FFFFFF#000000##FFFFFF
##6D21B01.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#5F496A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6d21b0;
/* rgb */ color: rgb(109, 33, 176);
/* oklch */ color: oklch(44.8% 0.206 302.4);
Tailwind
colors: {
  custom: {
    50: '#9d67c9',
    500: '#6d21b0',
    950: '#000000',
  },
}
SCSS
$custom: #6d21b0;
$custom-light: #9d67c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6d21b0",
  "rgb": {
    "r": 109,
    "g": 33,
    "b": 176
  },
  "hsl": {
    "h": 271.888,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44767,
    "c": 0.2065,
    "h": 302.4
  },
  "luminance": 0.07474
}

Semantic roles & 50–950 ramp

primary
#6D21B0
secondary
#93C864
accent
#EB3D8E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6D21B0

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

Preview Lab → · Contrast checker → · Palette generator →

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