#6C2FA4#6C2FA4

#6C2FA4 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.179 H 303.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#6C2FA4
RGBrgb(108, 47, 164)
HSLhsl(271, 55%, 41%)
HSVhsv(271, 71%, 64%)
CMYKcmyk(34.1%, 71.3%, 0%, 35.7%)
CIE-LABlab(33.78, 48.87, -52.36)
CIE-LCHlch(33.78, 71.62, 313.03°)
OKLaboklab(45.08% 0.0996 -0.1489)
OKLCHoklch(45.08% 0.179 303.8)
XYZxyz(13.9002, 7.9015, 35.9076)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2FA4 #67A42F
analogous
#322FA4 #6C2FA4 #A42FA2
triadic
#6C2FA4 #A46C2F #2FA46C
tetradic
#6C2FA4 #A4322F #67A42F #2FA2A4
square
#6C2FA4 #A4322F #67A42F #2FA2A4
split-complementary
#6C2FA4 #A2A42F #2FA432
monochromatic
#2D1445 #4D2174 #6C2FA4 #8B46CA #A976D8

Accessibility & contrast

On white

8.14
#6C2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6C2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2FA4
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2FA4#FFFFFF#000000##FFFFFF
##6C2FA41.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c2fa4;
/* rgb */ color: rgb(108, 47, 164);
/* oklch */ color: oklch(45.1% 0.179 303.8);
Tailwind
colors: {
  custom: {
    50: '#9b6dc0',
    500: '#6c2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #6c2fa4;
$custom-light: #9b6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2fa4",
  "rgb": {
    "r": 108,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 271.282,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4508,
    "c": 0.17919,
    "h": 303.8
  },
  "luminance": 0.07902
}

Semantic roles & 50–950 ramp

primary
#6C2FA4
secondary
#96C06F
accent
#DF4991
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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