#6E21BD#6E21BD

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

Color values

HEX#6E21BD
RGBrgb(110, 33, 189)
HSLhsl(270, 70%, 44%)
HSVhsv(270, 83%, 74%)
CMYKcmyk(41.8%, 82.5%, 0%, 25.9%)
CIE-LABlab(34.14, 60.85, -66.65)
CIE-LCHlch(34.14, 90.25, 312.40°)
OKLaboklab(46.03% 0.1081 -0.1907)
OKLCHoklch(46.03% 0.219 299.5)
XYZxyz(16.1572, 8.0766, 48.8419)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E21BD #70BD21
analogous
#2122BD #6E21BD #BC21BD
triadic
#6E21BD #BD6E21 #21BD6E
tetradic
#6E21BD #BD2122 #70BD21 #21BDBC
square
#6E21BD #BD2122 #70BD21 #21BDBC
split-complementary
#6E21BD #BDBC21 #22BD21
monochromatic
#310F55 #501889 #6E21BD #8D3EDD #AB72E6

Accessibility & contrast

On white

8.03
#6E21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6E21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E21BD
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E21BD#FFFFFF#000000##FFFFFF
##6E21BD1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#5B4E71
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6e21bd;
/* rgb */ color: rgb(110, 33, 189);
/* oklch */ color: oklch(46.0% 0.219 299.5);
Tailwind
colors: {
  custom: {
    50: '#9f68d2',
    500: '#6e21bd',
    950: '#000000',
  },
}
SCSS
$custom: #6e21bd;
$custom-light: #9f68d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6e21bd",
  "rgb": {
    "r": 110,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 269.615,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46034,
    "c": 0.21923,
    "h": 299.5
  },
  "luminance": 0.08077
}

Semantic roles & 50–950 ramp

primary
#6E21BD
secondary
#9ECD6D
accent
#ED3B95
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #6E21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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