#6A1F85#6A1F85

#6A1F85 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.166 H 315.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#6A1F85
RGBrgb(106, 31, 133)
HSLhsl(284, 62%, 32%)
HSVhsv(284, 77%, 52%)
CMYKcmyk(20.3%, 76.7%, 0%, 47.8%)
CIE-LABlab(28.74, 48.32, -41.51)
CIE-LCHlch(28.74, 63.70, 319.34°)
OKLaboklab(40.72% 0.1182 -0.117)
OKLCHoklch(40.72% 0.166 315.3)
XYZxyz(10.6668, 5.7380, 22.7314)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F85 #3A851F
analogous
#371F85 #6A1F85 #851F6D
triadic
#6A1F85 #856A1F #1F856A
tetradic
#6A1F85 #85371F #3A851F #1F6D85
square
#6A1F85 #85371F #3A851F #1F6D85
split-complementary
#6A1F85 #6D851F #1F8537
monochromatic
#1B0822 #421353 #6A1F85 #922BB7 #B04AD5

Accessibility & contrast

On white

9.78
#6A1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1F85
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1F85#FFFFFF#000000##FFFFFF
##6A1F851.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#1B4683
Tritanopia (blue-blind)
#683551
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a1f85;
/* rgb */ color: rgb(106, 31, 133);
/* oklch */ color: oklch(40.7% 0.166 315.3);
Tailwind
colors: {
  custom: {
    50: '#9863a9',
    500: '#6a1f85',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f85;
$custom-light: #9863a9;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f85",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 284.118,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40719,
    "c": 0.16631,
    "h": 315.3
  },
  "luminance": 0.05738
}

Semantic roles & 50–950 ramp

primary
#6A1F85
secondary
#66B749
accent
#E5436E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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