#6A218E#6A218E

#6A218E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.173 H 311.7°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#6A218E
RGBrgb(106, 33, 142)
HSLhsl(280, 62%, 34%)
HSVhsv(280, 77%, 56%)
CMYKcmyk(25.4%, 76.8%, 0%, 44.3%)
CIE-LABlab(29.68, 49.48, -45.59)
CIE-LCHlch(29.68, 67.28, 317.34°)
OKLaboklab(41.59% 0.1148 -0.129)
OKLCHoklch(41.59% 0.173 311.7)
XYZxyz(11.3693, 6.1052, 26.1654)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A218E #458E21
analogous
#33218E #6A218E #8E217C
triadic
#6A218E #8E6A21 #218E6A
tetradic
#6A218E #8E3321 #458E21 #217C8E
square
#6A218E #8E3321 #458E21 #217C8E
split-complementary
#6A218E #7C8E21 #218E33
monochromatic
#200A2B #45155C #6A218E #8F2DC0 #AB52D7

Accessibility & contrast

On white

9.46
#6A218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A218E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A218E#FFFFFF#000000##FFFFFF
##6A218E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#0E478C
Tritanopia (blue-blind)
#653A56
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a218e;
/* rgb */ color: rgb(106, 33, 142);
/* oklch */ color: oklch(41.6% 0.173 311.7);
Tailwind
colors: {
  custom: {
    50: '#9964b0',
    500: '#6a218e',
    950: '#000000',
  },
}
SCSS
$custom: #6a218e;
$custom-light: #9964b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a218e",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 280.183,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4159,
    "c": 0.17269,
    "h": 311.7
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#6A218E
secondary
#73BA50
accent
#E54278
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A218E

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

Preview Lab → · Contrast checker → · Palette generator →

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