#6C2DA9#6C2DA9

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

Color values

HEX#6C2DA9
RGBrgb(108, 45, 169)
HSLhsl(270, 58%, 42%)
HSVhsv(270, 73%, 66%)
CMYKcmyk(36.1%, 73.4%, 0%, 33.7%)
CIE-LABlab(33.84, 51.01, -55.27)
CIE-LCHlch(33.84, 75.21, 312.71°)
OKLaboklab(45.24% 0.1007 -0.1575)
OKLCHoklch(45.24% 0.187 302.6)
XYZxyz(14.2825, 7.9295, 38.3065)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DA9 #6AA92D
analogous
#2E2DA9 #6C2DA9 #A92DA8
triadic
#6C2DA9 #A96C2D #2DA96C
tetradic
#6C2DA9 #A92E2D #6AA92D #2DA8A9
square
#6C2DA9 #A92E2D #6AA92D #2DA8A9
split-complementary
#6C2DA9 #A8A92D #2DA92E
monochromatic
#2E1348 #4D2079 #6C2DA9 #8B46CE #A976DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C2DA9#FFFFFF#000000##FFFFFF
##6C2DA91.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)
#004EAD
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#5F4B68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c2da9;
/* rgb */ color: rgb(108, 45, 169);
/* oklch */ color: oklch(45.2% 0.187 302.6);
Tailwind
colors: {
  custom: {
    50: '#9c6cc3',
    500: '#6c2da9',
    950: '#000000',
  },
}
SCSS
$custom: #6c2da9;
$custom-light: #9c6cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2da9",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 270.484,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45242,
    "c": 0.18695,
    "h": 302.6
  },
  "luminance": 0.07929
}

Semantic roles & 50–950 ramp

primary
#6C2DA9
secondary
#98C26F
accent
#E14793
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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