#6A218D#6A218D

#6A218D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.172 H 312.0°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#6A218D
RGBrgb(106, 33, 141)
HSLhsl(281, 62%, 34%)
HSVhsv(281, 77%, 55%)
CMYKcmyk(24.8%, 76.6%, 0%, 44.7%)
CIE-LABlab(29.60, 49.26, -45.09)
CIE-LCHlch(29.60, 66.78, 317.53°)
OKLaboklab(41.51% 0.115 -0.1276)
OKLCHoklch(41.51% 0.172 312)
XYZxyz(11.2945, 6.0753, 25.7718)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A218D #448D21
analogous
#34218D #6A218D #8D217A
triadic
#6A218D #8D6A21 #218D6A
tetradic
#6A218D #8D3421 #448D21 #217A8D
square
#6A218D #8D3421 #448D21 #217A8D
split-complementary
#6A218D #7A8D21 #218D34
monochromatic
#1F0A2A #45155B #6A218D #8F2DBF #AC52D6

Accessibility & contrast

On white

9.48
#6A218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#6A218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A218D
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A218D#FFFFFF#000000##FFFFFF
##6A218D1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#10478B
Tritanopia (blue-blind)
#663A56
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a218d;
/* rgb */ color: rgb(106, 33, 141);
/* oklch */ color: oklch(41.5% 0.172 312.0);
Tailwind
colors: {
  custom: {
    50: '#9964af',
    500: '#6a218d',
    950: '#000000',
  },
}
SCSS
$custom: #6a218d;
$custom-light: #9964af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a218d",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 280.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41513,
    "c": 0.17172,
    "h": 312
  },
  "luminance": 0.06075
}

Semantic roles & 50–950 ramp

primary
#6A218D
secondary
#72BA50
accent
#E54377
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A218D

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

Preview Lab → · Contrast checker → · Palette generator →

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