#6B218B#6B218B

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

Color values

HEX#6B218B
RGBrgb(107, 33, 139)
HSLhsl(282, 62%, 34%)
HSVhsv(282, 76%, 55%)
CMYKcmyk(23%, 76.3%, 0%, 45.5%)
CIE-LABlab(29.61, 49.03, -43.83)
CIE-LCHlch(29.61, 65.77, 318.20°)
OKLaboklab(41.5% 0.1166 -0.1238)
OKLCHoklch(41.5% 0.17 313.3)
XYZxyz(11.2666, 6.0779, 25.0008)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B218B #418B21
analogous
#36218B #6B218B #8B2176
triadic
#6B218B #8B6B21 #218B6B
tetradic
#6B218B #8B3621 #418B21 #21768B
square
#6B218B #8B3621 #418B21 #21768B
split-complementary
#6B218B #768B21 #218B36
monochromatic
#1F0A28 #45155A #6B218B #912DBC #AE51D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6B218B#FFFFFF#000000##FFFFFF
##6B218B1.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)
#00428E
Deuteranopia (green-blind)
#164789
Tritanopia (blue-blind)
#683954
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b218b;
/* rgb */ color: rgb(107, 33, 139);
/* oklch */ color: oklch(41.5% 0.170 313.3);
Tailwind
colors: {
  custom: {
    50: '#9964ae',
    500: '#6b218b',
    950: '#000000',
  },
}
SCSS
$custom: #6b218b;
$custom-light: #9964ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6b218b",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 281.887,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41503,
    "c": 0.17012,
    "h": 313.3
  },
  "luminance": 0.06078
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B218B

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

Preview Lab → · Contrast checker → · Palette generator →

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