#6A1F8F#6A1F8F

#6A1F8F is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.176 H 311.5°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#6A1F8F
RGBrgb(106, 31, 143)
HSLhsl(280, 64%, 34%)
HSVhsv(280, 78%, 56%)
CMYKcmyk(25.9%, 78.3%, 0%, 43.9%)
CIE-LABlab(29.48, 50.47, -46.52)
CIE-LCHlch(29.48, 68.64, 317.33°)
OKLaboklab(41.48% 0.1165 -0.1318)
OKLCHoklch(41.48% 0.176 311.5)
XYZxyz(11.3908, 6.0276, 26.5447)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F8F #448F1F
analogous
#321F8F #6A1F8F #8F1F7C
triadic
#6A1F8F #8F6A1F #1F8F6A
tetradic
#6A1F8F #8F321F #448F1F #1F7C8F
square
#6A1F8F #8F321F #448F1F #1F7C8F
split-complementary
#6A1F8F #7C8F1F #1F8F32
monochromatic
#1F092A #45145D #6A1F8F #8F2AC1 #AC4FD9

Accessibility & contrast

On white

9.52
#6A1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#6A1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1F8F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1F8F#FFFFFF#000000##FFFFFF
##6A1F8F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#07478D
Tritanopia (blue-blind)
#653A56
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6a1f8f;
/* rgb */ color: rgb(106, 31, 143);
/* oklch */ color: oklch(41.5% 0.176 311.5);
Tailwind
colors: {
  custom: {
    50: '#9964b0',
    500: '#6a1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f8f;
$custom-light: #9964b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f8f",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 280.179,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41476,
    "c": 0.17584,
    "h": 311.5
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

primary
#6A1F8F
secondary
#72BC4E
accent
#E74078
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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