#6A1FA8#6A1FA8

#6A1FA8 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.5% C 0.200 H 303.4°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#6A1FA8
RGBrgb(106, 31, 168)
HSLhsl(273, 69%, 39%)
HSVhsv(273, 82%, 66%)
CMYKcmyk(36.9%, 81.5%, 0%, 34.1%)
CIE-LABlab(31.51, 56.08, -58.46)
CIE-LCHlch(31.51, 81.02, 313.81°)
OKLaboklab(43.53% 0.1102 -0.1668)
OKLCHoklch(43.53% 0.2 303.4)
XYZxyz(13.5001, 6.8713, 37.6533)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1FA8 #5DA81F
analogous
#261FA8 #6A1FA8 #A81FA2
triadic
#6A1FA8 #A86A1F #1FA86A
tetradic
#6A1FA8 #A8261F #5DA81F #1FA2A8
square
#6A1FA8 #A8261F #5DA81F #1FA2A8
split-complementary
#6A1FA8 #A2A81F #1FA826
monochromatic
#290C41 #491574 #6A1FA8 #8A2CD8 #A760E2

Accessibility & contrast

On white

8.85
#6A1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1FA8
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1FA8#FFFFFF#000000##FFFFFF
##6A1FA81.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#004AA5
Tritanopia (blue-blind)
#5D4565
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6a1fa8;
/* rgb */ color: rgb(106, 31, 168);
/* oklch */ color: oklch(43.5% 0.200 303.4);
Tailwind
colors: {
  custom: {
    50: '#9b65c3',
    500: '#6a1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #6a1fa8;
$custom-light: #9b65c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1fa8",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 272.847,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43529,
    "c": 0.19995,
    "h": 303.4
  },
  "luminance": 0.06871
}

Semantic roles & 50–950 ramp

primary
#6A1FA8
secondary
#8CC65D
accent
#EC3C8C
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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