#6B22AC#6B22AC

#6B22AC is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.3% C 0.201 H 302.5°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#6B22AC
RGBrgb(107, 34, 172)
HSLhsl(272, 67%, 40%)
HSVhsv(272, 80%, 67%)
CMYKcmyk(37.8%, 80.2%, 0%, 32.5%)
CIE-LABlab(32.37, 56.09, -59.47)
CIE-LCHlch(32.37, 81.74, 313.32°)
OKLaboklab(44.26% 0.1082 -0.1698)
OKLCHoklch(44.26% 0.201 302.5)
XYZxyz(14.0800, 7.2484, 39.6790)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B22AC #63AC22
analogous
#2622AC #6B22AC #AC22A8
triadic
#6B22AC #AC6B22 #22AC6B
tetradic
#6B22AC #AC2622 #63AC22 #22A8AC
square
#6B22AC #AC2622 #63AC22 #22A8AC
split-complementary
#6B22AC #A8AC22 #22AC26
monochromatic
#2B0E46 #4B1879 #6B22AC #8A34D7 #A867E1

Accessibility & contrast

On white

8.57
#6B22AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#6B22AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B22AC
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B22AC#FFFFFF#000000##FFFFFF
##6B22AC1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#5D4868
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6b22ac;
/* rgb */ color: rgb(107, 34, 172);
/* oklch */ color: oklch(44.3% 0.201 302.5);
Tailwind
colors: {
  custom: {
    50: '#9c67c6',
    500: '#6b22ac',
    950: '#000000',
  },
}
SCSS
$custom: #6b22ac;
$custom-light: #9c67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b22ac",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 271.739,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44258,
    "c": 0.20133,
    "h": 302.5
  },
  "luminance": 0.07248
}

Semantic roles & 50–950 ramp

primary
#6B22AC
secondary
#92C763
accent
#EA3E8F
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6B22AC

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

Preview Lab → · Contrast checker → · Palette generator →

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