#6A218C#6A218C

#6A218C is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.171 H 312.4°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#6A218C
RGBrgb(106, 33, 140)
HSLhsl(281, 62%, 34%)
HSVhsv(281, 76%, 55%)
CMYKcmyk(24.3%, 76.4%, 0%, 45.1%)
CIE-LABlab(29.53, 49.04, -44.59)
CIE-LCHlch(29.53, 66.28, 317.72°)
OKLaboklab(41.44% 0.1151 -0.1261)
OKLCHoklch(41.44% 0.171 312.4)
XYZxyz(11.2205, 6.0457, 25.3817)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A218C #438C21
analogous
#35218C #6A218C #8C2179
triadic
#6A218C #8C6A21 #218C6A
tetradic
#6A218C #8C3521 #438C21 #21798C
square
#6A218C #8C3521 #438C21 #21798C
split-complementary
#6A218C #798C21 #218C35
monochromatic
#1F0A29 #45155A #6A218C #902DBE #AC51D6

Accessibility & contrast

On white

9.51
#6A218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#6A218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A218C
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A218C#FFFFFF#000000##FFFFFF
##6A218C1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#12478A
Tritanopia (blue-blind)
#663955
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a218c;
/* rgb */ color: rgb(106, 33, 140);
/* oklch */ color: oklch(41.4% 0.171 312.4);
Tailwind
colors: {
  custom: {
    50: '#9964ae',
    500: '#6a218c',
    950: '#000000',
  },
}
SCSS
$custom: #6a218c;
$custom-light: #9964ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a218c",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 280.935,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41437,
    "c": 0.17075,
    "h": 312.4
  },
  "luminance": 0.06045
}

Semantic roles & 50–950 ramp

primary
#6A218C
secondary
#71B94F
accent
#E54376
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A218C

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

Preview Lab → · Contrast checker → · Palette generator →

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