#6A1F86#6A1F86

#6A1F86 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.167 H 314.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#6A1F86
RGBrgb(106, 31, 134)
HSLhsl(284, 62%, 32%)
HSVhsv(284, 77%, 53%)
CMYKcmyk(20.9%, 76.9%, 0%, 47.5%)
CIE-LABlab(28.81, 48.54, -42.01)
CIE-LCHlch(28.81, 64.19, 319.12°)
OKLaboklab(40.79% 0.118 -0.1185)
OKLCHoklch(40.79% 0.167 314.9)
XYZxyz(10.7362, 5.7658, 23.0970)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F86 #3B861F
analogous
#361F86 #6A1F86 #861F6F
triadic
#6A1F86 #866A1F #1F866A
tetradic
#6A1F86 #86361F #3B861F #1F6F86
square
#6A1F86 #86361F #3B861F #1F6F86
split-complementary
#6A1F86 #6F861F #1F8636
monochromatic
#1B0823 #431454 #6A1F86 #912AB8 #AF4AD5

Accessibility & contrast

On white

9.75
#6A1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6A1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1F86
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1F86#FFFFFF#000000##FFFFFF
##6A1F861.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#1A4684
Tritanopia (blue-blind)
#683651
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a1f86;
/* rgb */ color: rgb(106, 31, 134);
/* oklch */ color: oklch(40.8% 0.167 314.9);
Tailwind
colors: {
  custom: {
    50: '#9863aa',
    500: '#6a1f86',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f86;
$custom-light: #9863aa;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f86",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 283.689,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40793,
    "c": 0.16726,
    "h": 314.9
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#6A1F86
secondary
#67B849
accent
#E5426F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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