#6C2FA7#6C2FA7

#6C2FA7 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.182 H 302.9°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#6C2FA7
RGBrgb(108, 47, 167)
HSLhsl(271, 56%, 42%)
HSVhsv(271, 72%, 65%)
CMYKcmyk(35.3%, 71.9%, 0%, 34.5%)
CIE-LABlab(34.01, 49.61, -53.79)
CIE-LCHlch(34.01, 73.17, 312.68°)
OKLaboklab(45.31% 0.0991 -0.1531)
OKLCHoklch(45.31% 0.182 302.9)
XYZxyz(14.1743, 8.0112, 37.3513)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2FA7 #6AA72F
analogous
#302FA7 #6C2FA7 #A72FA6
triadic
#6C2FA7 #A76C2F #2FA76C
tetradic
#6C2FA7 #A7302F #6AA72F #2FA6A7
square
#6C2FA7 #A7302F #6AA72F #2FA6A7
split-complementary
#6C2FA7 #A6A72F #2FA730
monochromatic
#2E1447 #4D2277 #6C2FA7 #8B48CB #A978D9

Accessibility & contrast

On white

8.07
#6C2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6C2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2FA7
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2FA7#FFFFFF#000000##FFFFFF
##6C2FA71.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#604C68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c2fa7;
/* rgb */ color: rgb(108, 47, 167);
/* oklch */ color: oklch(45.3% 0.182 302.9);
Tailwind
colors: {
  custom: {
    50: '#9b6dc2',
    500: '#6c2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #6c2fa7;
$custom-light: #9b6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2fa7",
  "rgb": {
    "r": 108,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 270.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45314,
    "c": 0.18243,
    "h": 302.9
  },
  "luminance": 0.08011
}

Semantic roles & 50–950 ramp

primary
#6C2FA7
secondary
#98C171
accent
#DF4893
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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