#6A1FA6#6A1FA6

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

Color values

HEX#6A1FA6
RGBrgb(106, 31, 166)
HSLhsl(273, 69%, 39%)
HSVhsv(273, 81%, 65%)
CMYKcmyk(36.1%, 81.3%, 0%, 34.9%)
CIE-LABlab(31.34, 55.63, -57.54)
CIE-LCHlch(31.34, 80.03, 314.03°)
OKLaboklab(43.36% 0.1108 -0.1641)
OKLCHoklch(43.36% 0.198 304)
XYZxyz(13.3152, 6.7973, 36.6795)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1FA6 #5BA61F
analogous
#261FA6 #6A1FA6 #A61F9E
triadic
#6A1FA6 #A66A1F #1FA66A
tetradic
#6A1FA6 #A6261F #5BA61F #1F9EA6
square
#6A1FA6 #A6261F #5BA61F #1F9EA6
split-complementary
#6A1FA6 #9EA61F #1FA626
monochromatic
#280C3F #491572 #6A1FA6 #8B2BD7 #A75EE1

Accessibility & contrast

On white

8.90
#6A1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#6A1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1FA6
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1FA6#FFFFFF#000000##FFFFFF
##6A1FA61.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#5E4463
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6a1fa6;
/* rgb */ color: rgb(106, 31, 166);
/* oklch */ color: oklch(43.4% 0.198 304.0);
Tailwind
colors: {
  custom: {
    50: '#9b65c1',
    500: '#6a1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #6a1fa6;
$custom-light: #9b65c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1fa6",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 273.333,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43357,
    "c": 0.19801,
    "h": 304
  },
  "luminance": 0.06797
}

Semantic roles & 50–950 ramp

primary
#6A1FA6
secondary
#8BC55B
accent
#EB3C8A
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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