#6A198B#6A198B

#6A198B is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.6% C 0.178 H 313.4°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#6A198B
RGBrgb(106, 25, 139)
HSLhsl(283, 70%, 32%)
HSVhsv(283, 82%, 55%)
CMYKcmyk(23.7%, 82%, 0%, 45.5%)
CIE-LABlab(28.44, 51.73, -45.73)
CIE-LCHlch(28.44, 69.05, 318.53°)
OKLaboklab(40.65% 0.1224 -0.1294)
OKLCHoklch(40.65% 0.178 313.4)
XYZxyz(10.9509, 5.6239, 24.9297)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A198B #3A8B19
analogous
#31198B #6A198B #8B1973
triadic
#6A198B #8B6A19 #198B6A
tetradic
#6A198B #8B3119 #3A8B19 #19738B
square
#6A198B #8B3119 #3A8B19 #19738B
split-complementary
#6A198B #738B19 #198B31
monochromatic
#1B0623 #421057 #6A198B #9222BF #B041DD

Accessibility & contrast

On white

9.88
#6A198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6A198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A198B
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A198B#FFFFFF#000000##FFFFFF
##6A198B1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#084589
Tritanopia (blue-blind)
#663553
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a198b;
/* rgb */ color: rgb(106, 25, 139);
/* oklch */ color: oklch(40.6% 0.178 313.4);
Tailwind
colors: {
  custom: {
    50: '#9961ae',
    500: '#6a198b',
    950: '#000000',
  },
}
SCSS
$custom: #6a198b;
$custom-light: #9961ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a198b",
  "rgb": {
    "r": 106,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 282.632,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4065,
    "c": 0.17812,
    "h": 313.4
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#6A198B
secondary
#66BE42
accent
#EC3B6F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A198B

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

Preview Lab → · Contrast checker → · Palette generator →

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