#6A218A#6A218A

#6A218A is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.169 H 313.1°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#6A218A
RGBrgb(106, 33, 138)
HSLhsl(282, 61%, 34%)
HSVhsv(282, 76%, 54%)
CMYKcmyk(23.2%, 76.1%, 0%, 45.9%)
CIE-LABlab(29.38, 48.61, -43.59)
CIE-LCHlch(29.38, 65.29, 318.11°)
OKLaboklab(41.29% 0.1154 -0.1232)
OKLCHoklch(41.29% 0.169 313.1)
XYZxyz(11.0743, 5.9872, 24.6121)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A218A #418A21
analogous
#35218A #6A218A #8A2175
triadic
#6A218A #8A6A21 #218A6A
tetradic
#6A218A #8A3521 #418A21 #21758A
square
#6A218A #8A3521 #418A21 #21758A
split-complementary
#6A218A #758A21 #218A35
monochromatic
#1E0927 #441559 #6A218A #902DBB #AD50D5

Accessibility & contrast

On white

9.56
#6A218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#6A218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A218A
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A218A#FFFFFF#000000##FFFFFF
##6A218A1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#164788
Tritanopia (blue-blind)
#673954
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6a218a;
/* rgb */ color: rgb(106, 33, 138);
/* oklch */ color: oklch(41.3% 0.169 313.1);
Tailwind
colors: {
  custom: {
    50: '#9864ad',
    500: '#6a218a',
    950: '#000000',
  },
}
SCSS
$custom: #6a218a;
$custom-light: #9864ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a218a",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 281.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41287,
    "c": 0.1688,
    "h": 313.1
  },
  "luminance": 0.05987
}

Semantic roles & 50–950 ramp

primary
#6A218A
secondary
#6FB94E
accent
#E54374
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A218A

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

Preview Lab → · Contrast checker → · Palette generator →

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