#6D21BE#6D21BE

#6D21BE is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.0% C 0.220 H 298.9°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#6D21BE
RGBrgb(109, 33, 190)
HSLhsl(269, 70%, 44%)
HSVhsv(269, 83%, 75%)
CMYKcmyk(42.6%, 82.6%, 0%, 25.5%)
CIE-LABlab(34.10, 60.95, -67.31)
CIE-LCHlch(34.10, 90.80, 312.16°)
OKLaboklab(46% 0.1062 -0.1927)
OKLCHoklch(46% 0.22 298.9)
XYZxyz(16.1424, 8.0564, 49.4098)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D21BE #72BE21
analogous
#2123BE #6D21BE #BB21BE
triadic
#6D21BE #BE6D21 #21BE6D
tetradic
#6D21BE #BE2123 #72BE21 #21BEBB
square
#6D21BE #BE2123 #72BE21 #21BEBB
split-complementary
#6D21BE #BEBB21 #23BE21
monochromatic
#310F56 #4F188A #6D21BE #8C3FDE #AB73E7

Accessibility & contrast

On white

8.04
#6D21BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6D21BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D21BE
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D21BE#FFFFFF#000000##FFFFFF
##6D21BE1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C2
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#594F72
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6d21be;
/* rgb */ color: rgb(109, 33, 190);
/* oklch */ color: oklch(46.0% 0.220 298.9);
Tailwind
colors: {
  custom: {
    50: '#9f67d3',
    500: '#6d21be',
    950: '#000000',
  },
}
SCSS
$custom: #6d21be;
$custom-light: #9f67d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6d21be",
  "rgb": {
    "r": 109,
    "g": 33,
    "b": 190
  },
  "hsl": {
    "h": 269.045,
    "s": 70.404,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46004,
    "c": 0.22006,
    "h": 298.9
  },
  "luminance": 0.08057
}

Semantic roles & 50–950 ramp

primary
#6D21BE
secondary
#9FCD6D
accent
#ED3B97
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #6D21BE

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

Preview Lab → · Contrast checker → · Palette generator →

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