#6C2FAC#6C2FAC

#6C2FAC is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.188 H 301.5°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#6C2FAC
RGBrgb(108, 47, 172)
HSLhsl(269, 57%, 43%)
HSVhsv(269, 73%, 67%)
CMYKcmyk(37.2%, 72.7%, 0%, 32.5%)
CIE-LABlab(34.40, 50.83, -56.15)
CIE-LCHlch(34.40, 75.74, 312.15°)
OKLaboklab(45.71% 0.0982 -0.1601)
OKLCHoklch(45.71% 0.188 301.5)
XYZxyz(14.6455, 8.1997, 39.8328)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2FAC #6FAC2F
analogous
#2F30AC #6C2FAC #AA2FAC
triadic
#6C2FAC #AC6C2F #2FAC6C
tetradic
#6C2FAC #AC2F30 #6FAC2F #2FACAA
square
#6C2FAC #AC2F30 #6FAC2F #2FACAA
split-complementary
#6C2FAC #ACAA2F #30AC2F
monochromatic
#30154C #4E227C #6C2FAC #8B4BCE #AA7BDB

Accessibility & contrast

On white

7.95
#6C2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6C2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2FAC
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2FAC#FFFFFF#000000##FFFFFF
##6C2FAC1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#5E4E6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6c2fac;
/* rgb */ color: rgb(108, 47, 172);
/* oklch */ color: oklch(45.7% 0.188 301.5);
Tailwind
colors: {
  custom: {
    50: '#9c6dc6',
    500: '#6c2fac',
    950: '#000000',
  },
}
SCSS
$custom: #6c2fac;
$custom-light: #9c6dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2fac",
  "rgb": {
    "r": 108,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 269.28,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45712,
    "c": 0.18781,
    "h": 301.5
  },
  "luminance": 0.082
}

Semantic roles & 50–950 ramp

primary
#6C2FAC
secondary
#9CC374
accent
#E04796
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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