#6A1794#6A1794

#6A1794 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.2% C 0.188 H 310.3°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#6A1794
RGBrgb(106, 23, 148)
HSLhsl(280, 73%, 34%)
HSVhsv(280, 84%, 58%)
CMYKcmyk(28.4%, 84.5%, 0%, 42%)
CIE-LABlab(28.94, 54.26, -50.48)
CIE-LCHlch(28.94, 74.11, 317.06°)
OKLaboklab(41.22% 0.1217 -0.1433)
OKLCHoklch(41.22% 0.188 310.3)
XYZxyz(11.5945, 5.8154, 28.5229)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1794 #419417
analogous
#2B1794 #6A1794 #94177F
triadic
#6A1794 #946A17 #17946A
tetradic
#6A1794 #942B17 #419417 #177F94
square
#6A1794 #942B17 #419417 #177F94
split-complementary
#6A1794 #7F9417 #17942B
monochromatic
#1E072A #440F5F #6A1794 #901FC9 #AD44E2

Accessibility & contrast

On white

9.71
#6A1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6A1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1794
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1794#FFFFFF#000000##FFFFFF
##6A17941.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#643958
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a1794;
/* rgb */ color: rgb(106, 23, 148);
/* oklch */ color: oklch(41.2% 0.188 310.3);
Tailwind
colors: {
  custom: {
    50: '#9a61b4',
    500: '#6a1794',
    950: '#000000',
  },
}
SCSS
$custom: #6a1794;
$custom-light: #9a61b4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1794",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 279.84,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41222,
    "c": 0.18806,
    "h": 310.3
  },
  "luminance": 0.05815
}

Semantic roles & 50–950 ramp

primary
#6A1794
secondary
#6FC344
accent
#F03876
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6A1794

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

Preview Lab → · Contrast checker → · Palette generator →

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