#6A2A8A#6A2A8A

#6A2A8A is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.3% C 0.157 H 312.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#6A2A8A
RGBrgb(106, 42, 138)
HSLhsl(280, 53%, 35%)
HSVhsv(280, 70%, 54%)
CMYKcmyk(23.2%, 69.6%, 0%, 45.9%)
CIE-LABlab(30.77, 44.67, -41.35)
CIE-LCHlch(30.77, 60.87, 317.22°)
OKLaboklab(42.28% 0.1057 -0.1166)
OKLCHoklch(42.28% 0.157 312.2)
XYZxyz(11.3584, 6.5554, 24.7068)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2A8A #4A8A2A
analogous
#3A2A8A #6A2A8A #8A2A7A
triadic
#6A2A8A #8A6A2A #2A8A6A
tetradic
#6A2A8A #8A3A2A #4A8A2A #2A7A8A
square
#6A2A8A #8A3A2A #4A8A2A #2A7A8A
split-complementary
#6A2A8A #7A8A2A #2A8A3A
monochromatic
#220D2C #461C5B #6A2A8A #8E38B9 #AA60CF

Accessibility & contrast

On white

9.09
#6A2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6A2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2A8A
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2A8A#FFFFFF#000000##FFFFFF
##6A2A8A1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#214A88
Tritanopia (blue-blind)
#663E56
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a2a8a;
/* rgb */ color: rgb(106, 42, 138);
/* oklch */ color: oklch(42.3% 0.157 312.2);
Tailwind
colors: {
  custom: {
    50: '#9869ad',
    500: '#6a2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #6a2a8a;
$custom-light: #9869ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2a8a",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 280,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42278,
    "c": 0.15742,
    "h": 312.2
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#6A2A8A
secondary
#79B45B
accent
#DD4B7C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6A2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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