#6C2497#6C2497

#6C2497 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.179 H 309.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#6C2497
RGBrgb(108, 36, 151)
HSLhsl(278, 61%, 37%)
HSVhsv(278, 76%, 59%)
CMYKcmyk(28.5%, 76.2%, 0%, 40.8%)
CIE-LABlab(31.08, 50.67, -48.84)
CIE-LCHlch(31.08, 70.38, 316.05°)
OKLaboklab(42.86% 0.113 -0.1385)
OKLCHoklch(42.86% 0.179 309.2)
XYZxyz(12.4000, 6.6845, 29.9092)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2497 #4F9724
analogous
#332497 #6C2497 #972489
triadic
#6C2497 #976C24 #24976C
tetradic
#6C2497 #973324 #4F9724 #248997
square
#6C2497 #973324 #4F9724 #248997
split-complementary
#6C2497 #899724 #249733
monochromatic
#250C34 #491866 #6C2497 #8F30C8 #AA5DD8

Accessibility & contrast

On white

8.99
#6C2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6C2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2497
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2497#FFFFFF#000000##FFFFFF
##6C24971.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#663F5C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6c2497;
/* rgb */ color: rgb(108, 36, 151);
/* oklch */ color: oklch(42.9% 0.179 309.2);
Tailwind
colors: {
  custom: {
    50: '#9b67b6',
    500: '#6c2497',
    950: '#000000',
  },
}
SCSS
$custom: #6c2497;
$custom-light: #9b67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2497",
  "rgb": {
    "r": 108,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 277.565,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42855,
    "c": 0.17878,
    "h": 309.2
  },
  "luminance": 0.06684
}

Semantic roles & 50–950 ramp

primary
#6C2497
secondary
#7FBD5A
accent
#E54380
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C2497

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

Preview Lab → · Contrast checker → · Palette generator →

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