#6E22A6#6E22A6

#6E22A6 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.1% C 0.196 H 305.6°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#6E22A6
RGBrgb(110, 34, 166)
HSLhsl(275, 66%, 39%)
HSVhsv(275, 80%, 65%)
CMYKcmyk(33.7%, 79.5%, 0%, 34.9%)
CIE-LABlab(32.29, 55.20, -55.97)
CIE-LCHlch(32.29, 78.61, 314.60°)
OKLaboklab(44.14% 0.1142 -0.1594)
OKLCHoklch(44.14% 0.196 305.6)
XYZxyz(13.8838, 7.2123, 36.7297)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E22A6 #5AA622
analogous
#2C22A6 #6E22A6 #A6229C
triadic
#6E22A6 #A66E22 #22A66E
tetradic
#6E22A6 #A62C22 #5AA622 #229CA6
square
#6E22A6 #A62C22 #5AA622 #229CA6
split-complementary
#6E22A6 #9CA622 #22A62C
monochromatic
#2B0D40 #4C1873 #6E22A6 #8F30D5 #AB63DF

Accessibility & contrast

On white

8.60
#6E22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6E22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E22A6
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E22A6#FFFFFF#000000##FFFFFF
##6E22A61.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#644564
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6e22a6;
/* rgb */ color: rgb(110, 34, 166);
/* oklch */ color: oklch(44.1% 0.196 305.6);
Tailwind
colors: {
  custom: {
    50: '#9d67c1',
    500: '#6e22a6',
    950: '#000000',
  },
}
SCSS
$custom: #6e22a6;
$custom-light: #9d67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6e22a6",
  "rgb": {
    "r": 110,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 274.545,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44136,
    "c": 0.19609,
    "h": 305.6
  },
  "luminance": 0.07212
}

Semantic roles & 50–950 ramp

primary
#6E22A6
secondary
#8AC45F
accent
#E93F87
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6E22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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