#6B2178#6B2178

#6B2178 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.2% C 0.152 H 321.3°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#6B2178
RGBrgb(107, 33, 120)
HSLhsl(291, 57%, 30%)
HSVhsv(291, 73%, 47%)
CMYKcmyk(10.8%, 72.5%, 0%, 52.9%)
CIE-LABlab(28.30, 45.07, -34.02)
CIE-LCHlch(28.30, 56.47, 322.95°)
OKLaboklab(40.16% 0.1186 -0.0951)
OKLCHoklch(40.16% 0.152 321.3)
XYZxyz(9.9970, 5.5701, 18.3142)
Luminance0.0557 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2178 #2E7821
analogous
#3F2178 #6B2178 #78215A
triadic
#6B2178 #786B21 #21786B
tetradic
#6B2178 #783F21 #2E7821 #215A78
square
#6B2178 #783F21 #2E7821 #215A78
split-complementary
#6B2178 #5A7821 #21783F
monochromatic
#150718 #401448 #6B2178 #962EA8 #B847CC

Accessibility & contrast

On white

9.93
#6B2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6B2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2178
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2178#FFFFFF#000000##FFFFFF
##6B21781.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7A
Deuteranopia (green-blind)
#2B4576
Tritanopia (blue-blind)
#6C314A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b2178;
/* rgb */ color: rgb(107, 33, 120);
/* oklch */ color: oklch(40.2% 0.152 321.3);
Tailwind
colors: {
  custom: {
    50: '#98649f',
    500: '#6b2178',
    950: '#000000',
  },
}
SCSS
$custom: #6b2178;
$custom-light: #98649f;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2178",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 291.034,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.40155,
    "c": 0.15201,
    "h": 321.3
  },
  "luminance": 0.0557
}

Semantic roles & 50–950 ramp

primary
#6B2178
secondary
#58AB4A
accent
#E0485E
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060E
muted
#7E7A7E

Preview Lab

Preview with #6B2178

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

Preview Lab → · Contrast checker → · Palette generator →

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