#6C2FA8#6C2FA8

#6C2FA8 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.184 H 302.6°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#6C2FA8
RGBrgb(108, 47, 168)
HSLhsl(270, 56%, 42%)
HSVhsv(270, 72%, 66%)
CMYKcmyk(35.7%, 72%, 0%, 34.1%)
CIE-LABlab(34.08, 49.85, -54.26)
CIE-LCHlch(34.08, 73.69, 312.57°)
OKLaboklab(45.39% 0.0989 -0.1545)
OKLCHoklch(45.39% 0.184 302.6)
XYZxyz(14.2671, 8.0483, 37.8400)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2FA8 #6BA82F
analogous
#302FA8 #6C2FA8 #A82FA8
triadic
#6C2FA8 #A86C2F #2FA86C
tetradic
#6C2FA8 #A8302F #6BA82F #2FA8A8
square
#6C2FA8 #A8302F #6BA82F #2FA8A8
split-complementary
#6C2FA8 #A8A82F #2FA830
monochromatic
#2F1448 #4D2278 #6C2FA8 #8B48CC #A978D9

Accessibility & contrast

On white

8.05
#6C2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6C2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2FA8
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2FA8#FFFFFF#000000##FFFFFF
##6C2FA81.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c2fa8;
/* rgb */ color: rgb(108, 47, 168);
/* oklch */ color: oklch(45.4% 0.184 302.6);
Tailwind
colors: {
  custom: {
    50: '#9b6dc3',
    500: '#6c2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #6c2fa8;
$custom-light: #9b6dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2fa8",
  "rgb": {
    "r": 108,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 270.248,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45393,
    "c": 0.18351,
    "h": 302.6
  },
  "luminance": 0.08048
}

Semantic roles & 50–950 ramp

primary
#6C2FA8
secondary
#99C171
accent
#E04893
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6C2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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