#6C198B#6C198B

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

Color values

HEX#6C198B
RGBrgb(108, 25, 139)
HSLhsl(284, 70%, 32%)
HSVhsv(284, 82%, 55%)
CMYKcmyk(22.3%, 82%, 0%, 45.5%)
CIE-LABlab(28.77, 52.10, -45.19)
CIE-LCHlch(28.77, 68.97, 319.07°)
OKLaboklab(40.94% 0.1251 -0.1277)
OKLCHoklch(40.94% 0.179 314.4)
XYZxyz(11.1914, 5.7479, 24.9410)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C198B #388B19
analogous
#33198B #6C198B #8B1971
triadic
#6C198B #8B6C19 #198B6C
tetradic
#6C198B #8B3319 #388B19 #19718B
square
#6C198B #8B3319 #388B19 #19718B
split-complementary
#6C198B #718B19 #198B33
monochromatic
#1B0623 #441057 #6C198B #9422BF #B341DD

Accessibility & contrast

On white

9.77
#6C198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6C198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C198B
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C198B#FFFFFF#000000##FFFFFF
##6C198B1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#0F4689
Tritanopia (blue-blind)
#693553
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c198b;
/* rgb */ color: rgb(108, 25, 139);
/* oklch */ color: oklch(40.9% 0.179 314.4);
Tailwind
colors: {
  custom: {
    50: '#9a61ae',
    500: '#6c198b',
    950: '#000000',
  },
}
SCSS
$custom: #6c198b;
$custom-light: #9a61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6c198b",
  "rgb": {
    "r": 108,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 283.684,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40942,
    "c": 0.17879,
    "h": 314.4
  },
  "luminance": 0.05747
}

Semantic roles & 50–950 ramp

primary
#6C198B
secondary
#64BE42
accent
#EC3B6C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C198B

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

Preview Lab → · Contrast checker → · Palette generator →

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