#6C2EA4#6C2EA4

#6C2EA4 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.180 H 303.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#6C2EA4
RGBrgb(108, 46, 164)
HSLhsl(272, 56%, 41%)
HSVhsv(272, 72%, 64%)
CMYKcmyk(34.1%, 72%, 0%, 35.7%)
CIE-LABlab(33.61, 49.34, -52.63)
CIE-LCHlch(33.61, 72.14, 313.15°)
OKLaboklab(44.96% 0.1007 -0.1497)
OKLCHoklch(44.96% 0.18 303.9)
XYZxyz(13.8606, 7.8225, 35.8944)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2EA4 #66A42E
analogous
#312EA4 #6C2EA4 #A42EA1
triadic
#6C2EA4 #A46C2E #2EA46C
tetradic
#6C2EA4 #A4312E #66A42E #2EA1A4
square
#6C2EA4 #A4312E #66A42E #2EA1A4
split-complementary
#6C2EA4 #A1A42E #2EA431
monochromatic
#2D1344 #4D2174 #6C2EA4 #8B45CB #A974D8

Accessibility & contrast

On white

8.19
#6C2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6C2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2EA4
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2EA4#FFFFFF#000000##FFFFFF
##6C2EA41.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#614A66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c2ea4;
/* rgb */ color: rgb(108, 46, 164);
/* oklch */ color: oklch(45.0% 0.180 303.9);
Tailwind
colors: {
  custom: {
    50: '#9b6cc0',
    500: '#6c2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #6c2ea4;
$custom-light: #9b6cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2ea4",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 271.525,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44961,
    "c": 0.18043,
    "h": 303.9
  },
  "luminance": 0.07822
}

Semantic roles & 50–950 ramp

primary
#6C2EA4
secondary
#95C06E
accent
#DF4890
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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