#6C2CAC#6C2CAC

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

Color values

HEX#6C2CAC
RGBrgb(108, 44, 172)
HSLhsl(270, 59%, 42%)
HSVhsv(270, 74%, 67%)
CMYKcmyk(37.2%, 74.4%, 0%, 32.5%)
CIE-LABlab(33.92, 52.19, -56.93)
CIE-LCHlch(33.92, 77.23, 312.51°)
OKLaboklab(45.37% 0.1011 -0.1624)
OKLCHoklch(45.37% 0.191 301.9)
XYZxyz(14.5296, 7.9680, 39.7942)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2CAC #6CAC2C
analogous
#2C2CAC #6C2CAC #AC2CAC
triadic
#6C2CAC #AC6C2C #2CAC6C
tetradic
#6C2CAC #AC2C2C #6CAC2C #2CACAC
square
#6C2CAC #AC2C2C #6CAC2C #2CACAC
split-complementary
#6C2CAC #ACAC2C #2CAC2C
monochromatic
#2F134B #4D207B #6C2CAC #8B46D0 #A976DC

Accessibility & contrast

On white

8.10
#6C2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6C2CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2CAC
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2CAC#FFFFFF#000000##FFFFFF
##6C2CAC1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#5E4C6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c2cac;
/* rgb */ color: rgb(108, 44, 172);
/* oklch */ color: oklch(45.4% 0.191 301.9);
Tailwind
colors: {
  custom: {
    50: '#9c6bc6',
    500: '#6c2cac',
    950: '#000000',
  },
}
SCSS
$custom: #6c2cac;
$custom-light: #9c6bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2cac",
  "rgb": {
    "r": 108,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 270,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45374,
    "c": 0.19126,
    "h": 301.9
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#6C2CAC
secondary
#9AC470
accent
#E24594
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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