#6C29A2#6C29A2

#6C29A2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.184 H 305.1°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#6C29A2
RGBrgb(108, 41, 162)
HSLhsl(273, 60%, 40%)
HSVhsv(273, 75%, 64%)
CMYKcmyk(33.3%, 74.7%, 0%, 36.5%)
CIE-LABlab(32.66, 51.11, -52.96)
CIE-LCHlch(32.66, 73.60, 313.98°)
OKLaboklab(44.24% 0.106 -0.1507)
OKLCHoklch(44.24% 0.184 305.1)
XYZxyz(13.4974, 7.3827, 34.8894)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C29A2 #5FA229
analogous
#2F29A2 #6C29A2 #A2299C
triadic
#6C29A2 #A26C29 #29A26C
tetradic
#6C29A2 #A22F29 #5FA229 #299CA2
square
#6C29A2 #A22F29 #5FA229 #299CA2
split-complementary
#6C29A2 #9CA229 #29A22F
monochromatic
#2B1040 #4B1D71 #6C29A2 #8C3BCD #A96CDA

Accessibility & contrast

On white

8.48
#6C29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6C29A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C29A2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C29A2#FFFFFF#000000##FFFFFF
##6C29A21.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#624763
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6c29a2;
/* rgb */ color: rgb(108, 41, 162);
/* oklch */ color: oklch(44.2% 0.184 305.1);
Tailwind
colors: {
  custom: {
    50: '#9b6abe',
    500: '#6c29a2',
    950: '#000000',
  },
}
SCSS
$custom: #6c29a2;
$custom-light: #9b6abe;
$custom-dark: #000000;
JSON
{
  "hex": "#6c29a2",
  "rgb": {
    "r": 108,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 273.223,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44241,
    "c": 0.18424,
    "h": 305.1
  },
  "luminance": 0.07383
}

Semantic roles & 50–950 ramp

primary
#6C29A2
secondary
#8FC067
accent
#E3458B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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