#6C2FA3#6C2FA3

#6C2FA3 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.178 H 304.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#6C2FA3
RGBrgb(108, 47, 163)
HSLhsl(272, 55%, 41%)
HSVhsv(272, 71%, 64%)
CMYKcmyk(33.7%, 71.2%, 0%, 36.1%)
CIE-LABlab(33.70, 48.63, -51.88)
CIE-LCHlch(33.70, 71.10, 313.15°)
OKLaboklab(45% 0.0998 -0.1475)
OKLCHoklch(45% 0.178 304.1)
XYZxyz(13.8102, 7.8656, 35.4339)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2FA3 #66A32F
analogous
#322FA3 #6C2FA3 #A32FA0
triadic
#6C2FA3 #A36C2F #2FA36C
tetradic
#6C2FA3 #A3322F #66A32F #2FA0A3
square
#6C2FA3 #A3322F #66A32F #2FA0A3
split-complementary
#6C2FA3 #A0A32F #2FA332
monochromatic
#2D1444 #4D2173 #6C2FA3 #8B46CA #A975D7

Accessibility & contrast

On white

8.16
#6C2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6C2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2FA3
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2FA3#FFFFFF#000000##FFFFFF
##6C2FA31.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c2fa3;
/* rgb */ color: rgb(108, 47, 163);
/* oklch */ color: oklch(45.0% 0.178 304.1);
Tailwind
colors: {
  custom: {
    50: '#9b6dbf',
    500: '#6c2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #6c2fa3;
$custom-light: #9b6dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2fa3",
  "rgb": {
    "r": 108,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 271.552,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45002,
    "c": 0.17812,
    "h": 304.1
  },
  "luminance": 0.07866
}

Semantic roles & 50–950 ramp

primary
#6C2FA3
secondary
#95BF6F
accent
#DF4990
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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