#6D218B#6D218B

#6D218B is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.171 H 314.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#6D218B
RGBrgb(109, 33, 139)
HSLhsl(283, 62%, 34%)
HSVhsv(283, 76%, 55%)
CMYKcmyk(21.6%, 76.3%, 0%, 45.5%)
CIE-LABlab(29.92, 49.44, -43.32)
CIE-LCHlch(29.92, 65.73, 318.78°)
OKLaboklab(41.79% 0.1193 -0.1222)
OKLCHoklch(41.79% 0.171 314.3)
XYZxyz(11.5099, 6.2034, 25.0122)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D218B #3F8B21
analogous
#38218B #6D218B #8B2174
triadic
#6D218B #8B6D21 #218B6D
tetradic
#6D218B #8B3821 #3F8B21 #21748B
square
#6D218B #8B3821 #3F8B21 #21748B
split-complementary
#6D218B #748B21 #218B38
monochromatic
#1F0A28 #46155A #6D218B #942DBC #B051D6

Accessibility & contrast

On white

9.37
#6D218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6D218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D218B
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D218B#FFFFFF#000000##FFFFFF
##6D218B1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#1A4889
Tritanopia (blue-blind)
#6A3954
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6d218b;
/* rgb */ color: rgb(109, 33, 139);
/* oklch */ color: oklch(41.8% 0.171 314.3);
Tailwind
colors: {
  custom: {
    50: '#9b65ad',
    500: '#6d218b',
    950: '#000000',
  },
}
SCSS
$custom: #6d218b;
$custom-light: #9b65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6d218b",
  "rgb": {
    "r": 109,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 283.019,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41787,
    "c": 0.17084,
    "h": 314.3
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#6D218B
secondary
#6DB94F
accent
#E54371
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6D218B

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

Preview Lab → · Contrast checker → · Palette generator →

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