#6A198C#6A198C

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

Color values

HEX#6A198C
RGBrgb(106, 25, 140)
HSLhsl(282, 70%, 32%)
HSVhsv(282, 82%, 55%)
CMYKcmyk(24.3%, 82.1%, 0%, 45.1%)
CIE-LABlab(28.52, 51.94, -46.22)
CIE-LCHlch(28.52, 69.53, 318.34°)
OKLaboklab(40.73% 0.1222 -0.1308)
OKLCHoklch(40.73% 0.179 313)
XYZxyz(11.0243, 5.6532, 25.3163)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A198C #3B8C19
analogous
#31198C #6A198C #8C1974
triadic
#6A198C #8C6A19 #198C6A
tetradic
#6A198C #8C3119 #3B8C19 #19748C
square
#6A198C #8C3119 #3B8C19 #19748C
split-complementary
#6A198C #748C19 #198C31
monochromatic
#1B0624 #431058 #6A198C #9122C0 #AF42DD

Accessibility & contrast

On white

9.86
#6A198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6A198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A198C
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A198C#FFFFFF#000000##FFFFFF
##6A198C1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#05458A
Tritanopia (blue-blind)
#663653
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a198c;
/* rgb */ color: rgb(106, 25, 140);
/* oklch */ color: oklch(40.7% 0.179 313.0);
Tailwind
colors: {
  custom: {
    50: '#9961ae',
    500: '#6a198c',
    950: '#000000',
  },
}
SCSS
$custom: #6a198c;
$custom-light: #9961ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a198c",
  "rgb": {
    "r": 106,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 282.261,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40728,
    "c": 0.17904,
    "h": 313
  },
  "luminance": 0.05653
}

Semantic roles & 50–950 ramp

primary
#6A198C
secondary
#67BE43
accent
#ED3B70
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A198C

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

Preview Lab → · Contrast checker → · Palette generator →

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