#6A198E#6A198E

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

Color values

HEX#6A198E
RGBrgb(106, 25, 142)
HSLhsl(282, 70%, 33%)
HSVhsv(282, 82%, 56%)
CMYKcmyk(25.4%, 82.4%, 0%, 44.3%)
CIE-LABlab(28.68, 52.36, -47.21)
CIE-LCHlch(28.68, 70.50, 317.96°)
OKLaboklab(40.89% 0.1218 -0.1337)
OKLCHoklch(40.89% 0.181 312.3)
XYZxyz(11.1731, 5.7128, 26.1000)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A198E #3D8E19
analogous
#2F198E #6A198E #8E1978
triadic
#6A198E #8E6A19 #198E6A
tetradic
#6A198E #8E2F19 #3D8E19 #19788E
square
#6A198E #8E2F19 #3D8E19 #19788E
split-complementary
#6A198E #788E19 #198E2F
monochromatic
#1C0726 #43105A #6A198E #9122C2 #AE43DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6A198E#FFFFFF#000000##FFFFFF
##6A198E1.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)
#004091
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#663754
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a198e;
/* rgb */ color: rgb(106, 25, 142);
/* oklch */ color: oklch(40.9% 0.181 312.3);
Tailwind
colors: {
  custom: {
    50: '#9961b0',
    500: '#6a198e',
    950: '#000000',
  },
}
SCSS
$custom: #6a198e;
$custom-light: #9961b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a198e",
  "rgb": {
    "r": 106,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 281.538,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40886,
    "c": 0.18086,
    "h": 312.3
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#6A198E
secondary
#6ABF44
accent
#ED3B72
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A198E

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

Preview Lab → · Contrast checker → · Palette generator →

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