#6C2FA6#6C2FA6

#6C2FA6 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.181 H 303.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#6C2FA6
RGBrgb(108, 47, 166)
HSLhsl(271, 56%, 42%)
HSVhsv(271, 72%, 65%)
CMYKcmyk(34.9%, 71.7%, 0%, 34.9%)
CIE-LABlab(33.93, 49.36, -53.31)
CIE-LCHlch(33.93, 72.65, 312.80°)
OKLaboklab(45.24% 0.0993 -0.1517)
OKLCHoklch(45.24% 0.181 303.2)
XYZxyz(14.0822, 7.9744, 36.8663)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2FA6 #69A62F
analogous
#302FA6 #6C2FA6 #A62FA5
triadic
#6C2FA6 #A66C2F #2FA66C
tetradic
#6C2FA6 #A6302F #69A62F #2FA5A6
square
#6C2FA6 #A6302F #69A62F #2FA5A6
split-complementary
#6C2FA6 #A5A62F #2FA630
monochromatic
#2E1447 #4D2176 #6C2FA6 #8B47CB #A977D8

Accessibility & contrast

On white

8.09
#6C2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C2FA6
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2FA6#FFFFFF#000000##FFFFFF
##6C2FA61.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#604B67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c2fa6;
/* rgb */ color: rgb(108, 47, 166);
/* oklch */ color: oklch(45.2% 0.181 303.2);
Tailwind
colors: {
  custom: {
    50: '#9b6dc1',
    500: '#6c2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #6c2fa6;
$custom-light: #9b6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2fa6",
  "rgb": {
    "r": 108,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 270.756,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45236,
    "c": 0.18135,
    "h": 303.2
  },
  "luminance": 0.07974
}

Semantic roles & 50–950 ramp

primary
#6C2FA6
secondary
#97C170
accent
#DF4992
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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