#6C2496#6C2496

#6C2496 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.178 H 309.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#6C2496
RGBrgb(108, 36, 150)
HSLhsl(278, 61%, 36%)
HSVhsv(278, 76%, 59%)
CMYKcmyk(28%, 76%, 0%, 41.2%)
CIE-LABlab(31.00, 50.44, -48.35)
CIE-LCHlch(31.00, 69.88, 316.21°)
OKLaboklab(42.78% 0.1132 -0.1371)
OKLCHoklch(42.78% 0.178 309.5)
XYZxyz(12.3191, 6.6522, 29.4833)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2496 #4E9624
analogous
#332496 #6C2496 #962487
triadic
#6C2496 #966C24 #24966C
tetradic
#6C2496 #963324 #4E9624 #248796
square
#6C2496 #963324 #4E9624 #248796
split-complementary
#6C2496 #879624 #249633
monochromatic
#250C33 #481865 #6C2496 #9030C7 #AA5CD8

Accessibility & contrast

On white

9.01
#6C2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6C2496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2496
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2496#FFFFFF#000000##FFFFFF
##6C24961.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#024A94
Tritanopia (blue-blind)
#663F5B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6c2496;
/* rgb */ color: rgb(108, 36, 150);
/* oklch */ color: oklch(42.8% 0.178 309.5);
Tailwind
colors: {
  custom: {
    50: '#9a67b6',
    500: '#6c2496',
    950: '#000000',
  },
}
SCSS
$custom: #6c2496;
$custom-light: #9a67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2496",
  "rgb": {
    "r": 108,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 277.895,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42778,
    "c": 0.1778,
    "h": 309.5
  },
  "luminance": 0.06652
}

Semantic roles & 50–950 ramp

primary
#6C2496
secondary
#7EBD59
accent
#E4437F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C2496

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

Preview Lab → · Contrast checker → · Palette generator →

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