#6A22A8#6A22A8

#6A22A8 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.8% C 0.197 H 303.2°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#6A22A8
RGBrgb(106, 34, 168)
HSLhsl(272, 66%, 40%)
HSVhsv(272, 80%, 66%)
CMYKcmyk(36.9%, 79.8%, 0%, 34.1%)
CIE-LABlab(31.89, 54.99, -57.85)
CIE-LCHlch(31.89, 79.82, 313.55°)
OKLaboklab(43.79% 0.1079 -0.1651)
OKLCHoklch(43.79% 0.197 303.2)
XYZxyz(13.5821, 7.0354, 37.6806)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A22A8 #60A822
analogous
#2722A8 #6A22A8 #A822A3
triadic
#6A22A8 #A86A22 #22A86A
tetradic
#6A22A8 #A82722 #60A822 #22A3A8
square
#6A22A8 #A82722 #60A822 #22A3A8
split-complementary
#6A22A8 #A3A822 #22A827
monochromatic
#2A0D42 #4A1875 #6A22A8 #8A32D5 #A765E0

Accessibility & contrast

On white

8.72
#6A22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6A22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A22A8
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A22A8#FFFFFF#000000##FFFFFF
##6A22A81.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#5D4665
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6a22a8;
/* rgb */ color: rgb(106, 34, 168);
/* oklch */ color: oklch(43.8% 0.197 303.2);
Tailwind
colors: {
  custom: {
    50: '#9b66c3',
    500: '#6a22a8',
    950: '#000000',
  },
}
SCSS
$custom: #6a22a8;
$custom-light: #9b66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a22a8",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 272.239,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4379,
    "c": 0.1972,
    "h": 303.2
  },
  "luminance": 0.07035
}

Semantic roles & 50–950 ramp

primary
#6A22A8
secondary
#8FC561
accent
#E93F8E
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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