#6E21B3#6E21B3

#6E21B3 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.2% C 0.210 H 302.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#6E21B3
RGBrgb(110, 33, 179)
HSLhsl(272, 69%, 42%)
HSVhsv(272, 82%, 70%)
CMYKcmyk(38.5%, 81.6%, 0%, 29.8%)
CIE-LABlab(33.26, 58.53, -62.17)
CIE-LCHlch(33.26, 85.39, 313.27°)
OKLaboklab(45.15% 0.1113 -0.1776)
OKLCHoklch(45.15% 0.21 302.1)
XYZxyz(15.1090, 7.6573, 43.3211)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E21B3 #66B321
analogous
#2521B3 #6E21B3 #B321AF
triadic
#6E21B3 #B36E21 #21B36E
tetradic
#6E21B3 #B32521 #66B321 #21AFB3
square
#6E21B3 #B32521 #66B321 #21AFB3
split-complementary
#6E21B3 #AFB321 #21B325
monochromatic
#2E0E4C #4E177F #6E21B3 #8D37DA #AB6BE4

Accessibility & contrast

On white

8.30
#6E21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6E21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E21B3
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E21B3#FFFFFF#000000##FFFFFF
##6E21B31.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#5F4A6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6e21b3;
/* rgb */ color: rgb(110, 33, 179);
/* oklch */ color: oklch(45.2% 0.210 302.1);
Tailwind
colors: {
  custom: {
    50: '#9e67cb',
    500: '#6e21b3',
    950: '#000000',
  },
}
SCSS
$custom: #6e21b3;
$custom-light: #9e67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6e21b3",
  "rgb": {
    "r": 110,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 271.644,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45152,
    "c": 0.20958,
    "h": 302.1
  },
  "luminance": 0.07657
}

Semantic roles & 50–950 ramp

primary
#6E21B3
secondary
#95CA66
accent
#EC3C8F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6E21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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