#6C2EAA#6C2EAA

#6C2EAA is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.187 H 302.2°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#6C2EAA
RGBrgb(108, 46, 170)
HSLhsl(270, 57%, 42%)
HSVhsv(270, 73%, 67%)
CMYKcmyk(36.5%, 72.9%, 0%, 33.3%)
CIE-LABlab(34.08, 50.80, -55.48)
CIE-LCHlch(34.08, 75.22, 312.48°)
OKLaboklab(45.44% 0.0996 -0.1581)
OKLCHoklch(45.44% 0.187 302.2)
XYZxyz(14.4153, 8.0444, 38.8157)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2EAA #6CAA2E
analogous
#2E2EAA #6C2EAA #AA2EAA
triadic
#6C2EAA #AA6C2E #2EAA6C
tetradic
#6C2EAA #AA2E2E #6CAA2E #2EAAAA
square
#6C2EAA #AA2E2E #6CAA2E #2EAAAA
split-complementary
#6C2EAA #AAAA2E #2EAA2E
monochromatic
#2F144A #4D217A #6C2EAA #8B48CD #A978DA

Accessibility & contrast

On white

8.05
#6C2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6C2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2EAA
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2EAA#FFFFFF#000000##FFFFFF
##6C2EAA1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0050A7
Tritanopia (blue-blind)
#5F4C69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c2eaa;
/* rgb */ color: rgb(108, 46, 170);
/* oklch */ color: oklch(45.4% 0.187 302.2);
Tailwind
colors: {
  custom: {
    50: '#9c6cc4',
    500: '#6c2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #6c2eaa;
$custom-light: #9c6cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2eaa",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 270,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45436,
    "c": 0.18685,
    "h": 302.2
  },
  "luminance": 0.08044
}

Semantic roles & 50–950 ramp

primary
#6C2EAA
secondary
#9AC371
accent
#E14794
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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