#6E22A8#6E22A8

#6E22A8 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.3% C 0.198 H 305.0°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#6E22A8
RGBrgb(110, 34, 168)
HSLhsl(274, 66%, 40%)
HSVhsv(274, 80%, 66%)
CMYKcmyk(34.5%, 79.8%, 0%, 34.1%)
CIE-LABlab(32.45, 55.65, -56.91)
CIE-LCHlch(32.45, 79.60, 314.36°)
OKLaboklab(44.3% 0.1137 -0.1622)
OKLCHoklch(44.3% 0.198 305)
XYZxyz(14.0687, 7.2863, 37.7034)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E22A8 #5CA822
analogous
#2B22A8 #6E22A8 #A8229F
triadic
#6E22A8 #A86E22 #22A86E
tetradic
#6E22A8 #A82B22 #5CA822 #229FA8
square
#6E22A8 #A82B22 #5CA822 #229FA8
split-complementary
#6E22A8 #9FA822 #22A82B
monochromatic
#2B0D42 #4D1875 #6E22A8 #8F32D5 #AA65E0

Accessibility & contrast

On white

8.55
#6E22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#6E22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E22A8
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E22A8#FFFFFF#000000##FFFFFF
##6E22A81.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#634665
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6e22a8;
/* rgb */ color: rgb(110, 34, 168);
/* oklch */ color: oklch(44.3% 0.198 305.0);
Tailwind
colors: {
  custom: {
    50: '#9d67c3',
    500: '#6e22a8',
    950: '#000000',
  },
}
SCSS
$custom: #6e22a8;
$custom-light: #9d67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6e22a8",
  "rgb": {
    "r": 110,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 274.03,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44302,
    "c": 0.19803,
    "h": 305
  },
  "luminance": 0.07286
}

Semantic roles & 50–950 ramp

primary
#6E22A8
secondary
#8CC561
accent
#E93F88
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6E22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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