#6C2891#6C2891

#6C2891 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.168 H 310.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#6C2891
RGBrgb(108, 40, 145)
HSLhsl(279, 57%, 36%)
HSVhsv(279, 72%, 57%)
CMYKcmyk(25.5%, 72.4%, 0%, 43.1%)
CIE-LABlab(31.23, 47.62, -44.91)
CIE-LCHlch(31.23, 65.46, 316.67°)
OKLaboklab(42.82% 0.1099 -0.127)
OKLCHoklch(42.82% 0.168 310.9)
XYZxyz(12.0530, 6.7503, 27.4506)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2891 #4D9128
analogous
#382891 #6C2891 #912882
triadic
#6C2891 #916C28 #28916C
tetradic
#6C2891 #913828 #4D9128 #288291
square
#6C2891 #913828 #4D9128 #288291
split-complementary
#6C2891 #829128 #289138
monochromatic
#250E31 #481B61 #6C2891 #9035C1 #AB60D3

Accessibility & contrast

On white

8.94
#6C2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#6C2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2891
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2891#FFFFFF#000000##FFFFFF
##6C28911.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#174B8F
Tritanopia (blue-blind)
#673F5A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6c2891;
/* rgb */ color: rgb(108, 40, 145);
/* oklch */ color: oklch(42.8% 0.168 310.9);
Tailwind
colors: {
  custom: {
    50: '#9a68b2',
    500: '#6c2891',
    950: '#000000',
  },
}
SCSS
$custom: #6c2891;
$custom-light: #9a68b2;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2891",
  "rgb": {
    "r": 108,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 278.857,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42824,
    "c": 0.16798,
    "h": 310.9
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#6C2891
secondary
#7DB95C
accent
#E0487D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6C2891

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

Preview Lab → · Contrast checker → · Palette generator →

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