#6A1F8A#6A1F8A

#6A1F8A is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.171 H 313.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#6A1F8A
RGBrgb(106, 31, 138)
HSLhsl(282, 63%, 33%)
HSVhsv(282, 78%, 54%)
CMYKcmyk(23.2%, 77.5%, 0%, 45.9%)
CIE-LABlab(29.11, 49.39, -44.03)
CIE-LCHlch(29.11, 66.17, 318.28°)
OKLaboklab(41.09% 0.1174 -0.1244)
OKLCHoklch(41.09% 0.171 313.3)
XYZxyz(11.0205, 5.8795, 24.5942)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F8A #3F8A1F
analogous
#341F8A #6A1F8A #8A1F74
triadic
#6A1F8A #8A6A1F #1F8A6A
tetradic
#6A1F8A #8A341F #3F8A1F #1F748A
square
#6A1F8A #8A341F #3F8A1F #1F748A
split-complementary
#6A1F8A #748A1F #1F8A34
monochromatic
#1D0926 #441458 #6A1F8A #902ABC #AE4CD7

Accessibility & contrast

On white

9.65
#6A1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#6A1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1F8A
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1F8A#FFFFFF#000000##FFFFFF
##6A1F8A1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#144688
Tritanopia (blue-blind)
#673853
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6a1f8a;
/* rgb */ color: rgb(106, 31, 138);
/* oklch */ color: oklch(41.1% 0.171 313.3);
Tailwind
colors: {
  custom: {
    50: '#9963ad',
    500: '#6a1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f8a;
$custom-light: #9963ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f8a",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 282.056,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41093,
    "c": 0.17107,
    "h": 313.3
  },
  "luminance": 0.05879
}

Semantic roles & 50–950 ramp

primary
#6A1F8A
secondary
#6CBA4B
accent
#E64173
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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