#6C2FA2#6C2FA2

#6C2FA2 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.177 H 304.4°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#6C2FA2
RGBrgb(108, 47, 162)
HSLhsl(272, 55%, 41%)
HSVhsv(272, 71%, 64%)
CMYKcmyk(33.3%, 71%, 0%, 36.5%)
CIE-LABlab(33.63, 48.39, -51.39)
CIE-LCHlch(33.63, 70.59, 313.27°)
OKLaboklab(44.93% 0.1 -0.1461)
OKLCHoklch(44.93% 0.177 304.4)
XYZxyz(13.7210, 7.8299, 34.9639)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2FA2 #65A22F
analogous
#322FA2 #6C2FA2 #A22F9E
triadic
#6C2FA2 #A26C2F #2FA26C
tetradic
#6C2FA2 #A2322F #65A22F #2F9EA2
square
#6C2FA2 #A2322F #65A22F #2F9EA2
split-complementary
#6C2FA2 #9EA22F #2FA232
monochromatic
#2D1343 #4C2173 #6C2FA2 #8B45C9 #A975D7

Accessibility & contrast

On white

8.18
#6C2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C2FA2
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2FA2#FFFFFF#000000##FFFFFF
##6C2FA21.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#624A65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c2fa2;
/* rgb */ color: rgb(108, 47, 162);
/* oklch */ color: oklch(44.9% 0.177 304.4);
Tailwind
colors: {
  custom: {
    50: '#9b6dbe',
    500: '#6c2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #6c2fa2;
$custom-light: #9b6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2fa2",
  "rgb": {
    "r": 108,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 271.826,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44925,
    "c": 0.17703,
    "h": 304.4
  },
  "luminance": 0.0783
}

Semantic roles & 50–950 ramp

primary
#6C2FA2
secondary
#94BF6E
accent
#DE498F
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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