#6B22A0#6B22A0

#6B22A0 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.2% C 0.190 H 306.0°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#6B22A0
RGBrgb(107, 34, 160)
HSLhsl(275, 65%, 38%)
HSVhsv(275, 79%, 63%)
CMYKcmyk(33.1%, 78.8%, 0%, 37.3%)
CIE-LABlab(31.37, 53.32, -53.86)
CIE-LCHlch(31.37, 75.79, 314.71°)
OKLaboklab(43.25% 0.1114 -0.1533)
OKLCHoklch(43.25% 0.19 306)
XYZxyz(12.9792, 6.8080, 33.8812)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B22A0 #57A022
analogous
#2C22A0 #6B22A0 #A02296
triadic
#6B22A0 #A06B22 #22A06B
tetradic
#6B22A0 #A02C22 #57A022 #2296A0
square
#6B22A0 #A02C22 #57A022 #2296A0
split-complementary
#6B22A0 #96A022 #22A02C
monochromatic
#270D3B #49176E #6B22A0 #8D2DD2 #A85FDD

Accessibility & contrast

On white

8.89
#6B22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#6B22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B22A0
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B22A0#FFFFFF#000000##FFFFFF
##6B22A01.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A3
Deuteranopia (green-blind)
#004A9E
Tritanopia (blue-blind)
#614261
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6b22a0;
/* rgb */ color: rgb(107, 34, 160);
/* oklch */ color: oklch(43.2% 0.190 306.0);
Tailwind
colors: {
  custom: {
    50: '#9b66bd',
    500: '#6b22a0',
    950: '#000000',
  },
}
SCSS
$custom: #6b22a0;
$custom-light: #9b66bd;
$custom-dark: #000000;
JSON
{
  "hex": "#6b22a0",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 274.762,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43249,
    "c": 0.18953,
    "h": 306
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#6B22A0
secondary
#87C25C
accent
#E84087
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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