#6C2197#6C2197

#6C2197 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.182 H 309.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#6C2197
RGBrgb(108, 33, 151)
HSLhsl(278, 64%, 36%)
HSVhsv(278, 78%, 59%)
CMYKcmyk(28.5%, 78.1%, 0%, 40.8%)
CIE-LABlab(30.67, 51.85, -49.51)
CIE-LCHlch(30.67, 71.69, 316.32°)
OKLaboklab(42.57% 0.1158 -0.1405)
OKLCHoklch(42.57% 0.182 309.5)
XYZxyz(12.3130, 6.5105, 29.8802)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2197 #4C9721
analogous
#312197 #6C2197 #972187
triadic
#6C2197 #976C21 #21976C
tetradic
#6C2197 #973121 #4C9721 #218797
square
#6C2197 #973121 #4C9721 #218797
split-complementary
#6C2197 #879721 #219731
monochromatic
#240B33 #481665 #6C2197 #902CC9 #AB58DA

Accessibility & contrast

On white

9.12
#6C2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#6C2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2197
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2197#FFFFFF#000000##FFFFFF
##6C21971.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#663E5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6c2197;
/* rgb */ color: rgb(108, 33, 151);
/* oklch */ color: oklch(42.6% 0.182 309.5);
Tailwind
colors: {
  custom: {
    50: '#9b65b6',
    500: '#6c2197',
    950: '#000000',
  },
}
SCSS
$custom: #6c2197;
$custom-light: #9b65b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2197",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 278.136,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42565,
    "c": 0.18205,
    "h": 309.5
  },
  "luminance": 0.0651
}

Semantic roles & 50–950 ramp

primary
#6C2197
secondary
#7CBE55
accent
#E7417D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C2197

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

Preview Lab → · Contrast checker → · Palette generator →

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