#6A2A71#6A2A71

#6A2A71 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 40.6% C 0.132 H 323.6°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#6A2A71
RGBrgb(106, 42, 113)
HSLhsl(294, 46%, 30%)
HSVhsv(294, 63%, 44%)
CMYKcmyk(6.2%, 62.8%, 0%, 55.7%)
CIE-LABlab(29.19, 39.29, -28.16)
CIE-LCHlch(29.19, 48.34, 324.36°)
OKLaboklab(40.63% 0.1061 -0.0781)
OKLCHoklch(40.63% 0.132 323.6)
XYZxyz(9.7522, 5.9129, 16.2472)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2A71 #31712A
analogous
#472A71 #6A2A71 #712A54
triadic
#6A2A71 #716A2A #2A716A
tetradic
#6A2A71 #71472A #31712A #2A5471
square
#6A2A71 #71472A #31712A #2A5471
split-complementary
#6A2A71 #54712A #2A7147
monochromatic
#160918 #401944 #6A2A71 #943B9E #B555C0

Accessibility & contrast

On white

9.62
#6A2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A2A71
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2A71#FFFFFF#000000##FFFFFF
##6A2A711.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#35476F
Tritanopia (blue-blind)
#6C3449
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6a2a71;
/* rgb */ color: rgb(106, 42, 113);
/* oklch */ color: oklch(40.6% 0.132 323.6);
Tailwind
colors: {
  custom: {
    50: '#97689a',
    500: '#6a2a71',
    950: '#000000',
  },
}
SCSS
$custom: #6a2a71;
$custom-light: #97689a;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2a71",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 294.085,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.40629,
    "c": 0.13176,
    "h": 323.6
  },
  "luminance": 0.05912
}

Semantic roles & 50–950 ramp

primary
#6A2A71
secondary
#5CA354
accent
#D5525F
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060E
muted
#7E7A7E

Preview Lab

Preview with #6A2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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