#6C2FA5#6C2FA5

#6C2FA5 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.180 H 303.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#6C2FA5
RGBrgb(108, 47, 165)
HSLhsl(271, 56%, 42%)
HSVhsv(271, 72%, 65%)
CMYKcmyk(34.5%, 71.5%, 0%, 35.3%)
CIE-LABlab(33.85, 49.12, -52.83)
CIE-LCHlch(33.85, 72.14, 312.91°)
OKLaboklab(45.16% 0.0995 -0.1504)
OKLCHoklch(45.16% 0.18 303.5)
XYZxyz(13.9908, 7.9378, 36.3851)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2FA5 #68A52F
analogous
#312FA5 #6C2FA5 #A52FA3
triadic
#6C2FA5 #A56C2F #2FA56C
tetradic
#6C2FA5 #A5312F #68A52F #2FA3A5
square
#6C2FA5 #A5312F #68A52F #2FA3A5
split-complementary
#6C2FA5 #A3A52F #2FA531
monochromatic
#2E1446 #4D2175 #6C2FA5 #8B47CB #A976D8

Accessibility & contrast

On white

8.12
#6C2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C2FA5
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2FA5#FFFFFF#000000##FFFFFF
##6C2FA51.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#614B67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c2fa5;
/* rgb */ color: rgb(108, 47, 165);
/* oklch */ color: oklch(45.2% 0.180 303.5);
Tailwind
colors: {
  custom: {
    50: '#9b6dc0',
    500: '#6c2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #6c2fa5;
$custom-light: #9b6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2fa5",
  "rgb": {
    "r": 108,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 271.017,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45158,
    "c": 0.18028,
    "h": 303.5
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

primary
#6C2FA5
secondary
#97C070
accent
#DF4991
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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