#6C198A#6C198A

#6C198A is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.9% C 0.178 H 314.8°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#6C198A
RGBrgb(108, 25, 138)
HSLhsl(284, 69%, 32%)
HSVhsv(284, 82%, 54%)
CMYKcmyk(21.7%, 81.9%, 0%, 45.9%)
CIE-LABlab(28.69, 51.90, -44.69)
CIE-LCHlch(28.69, 68.49, 319.27°)
OKLaboklab(40.87% 0.1253 -0.1263)
OKLCHoklch(40.87% 0.178 314.8)
XYZxyz(11.1187, 5.7188, 24.5580)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C198A #378A19
analogous
#34198A #6C198A #8A1970
triadic
#6C198A #8A6C19 #198A6C
tetradic
#6C198A #8A3419 #378A19 #19708A
square
#6C198A #8A3419 #378A19 #19708A
split-complementary
#6C198A #708A19 #198A34
monochromatic
#1B0622 #431056 #6C198A #9522BE #B341DD

Accessibility & contrast

On white

9.80
#6C198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6C198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C198A
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C198A#FFFFFF#000000##FFFFFF
##6C198A1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#114688
Tritanopia (blue-blind)
#693452
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c198a;
/* rgb */ color: rgb(108, 25, 138);
/* oklch */ color: oklch(40.9% 0.178 314.8);
Tailwind
colors: {
  custom: {
    50: '#9a61ad',
    500: '#6c198a',
    950: '#000000',
  },
}
SCSS
$custom: #6c198a;
$custom-light: #9a61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6c198a",
  "rgb": {
    "r": 108,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 284.071,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40866,
    "c": 0.1779,
    "h": 314.8
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#6C198A
secondary
#62BD42
accent
#EC3C6B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6C198A

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

Preview Lab → · Contrast checker → · Palette generator →

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