#6C2198#6C2198

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

Color values

HEX#6C2198
RGBrgb(108, 33, 152)
HSLhsl(278, 64%, 36%)
HSVhsv(278, 78%, 60%)
CMYKcmyk(28.9%, 78.3%, 0%, 40.4%)
CIE-LABlab(30.74, 52.07, -50.00)
CIE-LCHlch(30.74, 72.19, 316.17°)
OKLaboklab(42.64% 0.1156 -0.1419)
OKLCHoklch(42.64% 0.183 309.2)
XYZxyz(12.3945, 6.5431, 30.3097)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2198 #4D9821
analogous
#312198 #6C2198 #982189
triadic
#6C2198 #986C21 #21986C
tetradic
#6C2198 #983121 #4D9821 #218998
square
#6C2198 #983121 #4D9821 #218998
split-complementary
#6C2198 #899821 #219831
monochromatic
#250B33 #481666 #6C2198 #902CCA #AB59DB

Accessibility & contrast

On white

9.10
#6C2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6C2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2198
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2198#FFFFFF#000000##FFFFFF
##6C21981.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#653E5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6c2198;
/* rgb */ color: rgb(108, 33, 152);
/* oklch */ color: oklch(42.6% 0.183 309.2);
Tailwind
colors: {
  custom: {
    50: '#9b65b7',
    500: '#6c2198',
    950: '#000000',
  },
}
SCSS
$custom: #6c2198;
$custom-light: #9b65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2198",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 277.815,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42644,
    "c": 0.18301,
    "h": 309.2
  },
  "luminance": 0.06543
}

Semantic roles & 50–950 ramp

primary
#6C2198
secondary
#7DBF56
accent
#E7407E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C2198

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

Preview Lab → · Contrast checker → · Palette generator →

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