#6A1FA7#6A1FA7

#6A1FA7 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.4% C 0.199 H 303.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#6A1FA7
RGBrgb(106, 31, 167)
HSLhsl(273, 69%, 39%)
HSVhsv(273, 81%, 65%)
CMYKcmyk(36.5%, 81.4%, 0%, 34.5%)
CIE-LABlab(31.43, 55.85, -58.00)
CIE-LCHlch(31.43, 80.52, 313.92°)
OKLaboklab(43.44% 0.1105 -0.1655)
OKLCHoklch(43.44% 0.199 303.7)
XYZxyz(13.4073, 6.8342, 37.1645)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1FA7 #5CA71F
analogous
#261FA7 #6A1FA7 #A71FA0
triadic
#6A1FA7 #A76A1F #1FA76A
tetradic
#6A1FA7 #A7261F #5CA71F #1FA0A7
square
#6A1FA7 #A7261F #5CA71F #1FA0A7
split-complementary
#6A1FA7 #A0A71F #1FA726
monochromatic
#280C40 #491573 #6A1FA7 #8A2BD8 #A75FE1

Accessibility & contrast

On white

8.87
#6A1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#6A1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1FA7
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1FA7#FFFFFF#000000##FFFFFF
##6A1FA71.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#5E4464
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6a1fa7;
/* rgb */ color: rgb(106, 31, 167);
/* oklch */ color: oklch(43.4% 0.199 303.7);
Tailwind
colors: {
  custom: {
    50: '#9b65c2',
    500: '#6a1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #6a1fa7;
$custom-light: #9b65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1fa7",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 273.088,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43443,
    "c": 0.19897,
    "h": 303.7
  },
  "luminance": 0.06834
}

Semantic roles & 50–950 ramp

primary
#6A1FA7
secondary
#8BC65C
accent
#EC3C8B
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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