#6A2282#6A2282

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

Color values

HEX#6A2282
RGBrgb(106, 34, 130)
HSLhsl(285, 59%, 32%)
HSVhsv(285, 74%, 51%)
CMYKcmyk(18.5%, 73.8%, 0%, 49%)
CIE-LABlab(28.95, 46.48, -39.28)
CIE-LCHlch(28.95, 60.86, 319.80°)
OKLaboklab(40.8% 0.1155 -0.1105)
OKLCHoklch(40.8% 0.16 316.3)
XYZxyz(10.5445, 5.8203, 21.6828)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2282 #3A8222
analogous
#3A2282 #6A2282 #82226A
triadic
#6A2282 #826A22 #22826A
tetradic
#6A2282 #823A22 #3A8222 #226A82
square
#6A2282 #823A22 #3A8222 #226A82
split-complementary
#6A2282 #6A8222 #22823A
monochromatic
#1B0921 #421551 #6A2282 #922FB3 #B04ED1

Accessibility & contrast

On white

9.70
#6A2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6A2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2282
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2282#FFFFFF#000000##FFFFFF
##6A22821.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004085
Deuteranopia (green-blind)
#224680
Tritanopia (blue-blind)
#683650
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a2282;
/* rgb */ color: rgb(106, 34, 130);
/* oklch */ color: oklch(40.8% 0.160 316.3);
Tailwind
colors: {
  custom: {
    50: '#9864a7',
    500: '#6a2282',
    950: '#000000',
  },
}
SCSS
$custom: #6a2282;
$custom-light: #9864a7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2282",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 285,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40803,
    "c": 0.15984,
    "h": 316.3
  },
  "luminance": 0.0582
}

Semantic roles & 50–950 ramp

primary
#6A2282
secondary
#66B44C
accent
#E2466D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A2282

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

Preview Lab → · Contrast checker → · Palette generator →

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