#6C29AB#6C29AB

#6C29AB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 45.0% C 0.194 H 302.5°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#6C29AB
RGBrgb(108, 41, 171)
HSLhsl(271, 61%, 42%)
HSVhsv(271, 76%, 67%)
CMYKcmyk(36.8%, 76%, 0%, 32.9%)
CIE-LABlab(33.38, 53.25, -57.20)
CIE-LCHlch(33.38, 78.15, 312.95°)
OKLaboklab(44.97% 0.1041 -0.1632)
OKLCHoklch(44.97% 0.194 302.5)
XYZxyz(14.3262, 7.7143, 39.2544)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C29AB #68AB29
analogous
#2B29AB #6C29AB #AB29A9
triadic
#6C29AB #AB6C29 #29AB6C
tetradic
#6C29AB #AB2B29 #68AB29 #29A9AB
square
#6C29AB #AB2B29 #68AB29 #29A9AB
split-complementary
#6C29AB #A9AB29 #29AB2B
monochromatic
#2E1148 #4D1D7A #6C29AB #8B40D1 #A971DD

Accessibility & contrast

On white

8.26
#6C29AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6C29AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C29AB
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C29AB#FFFFFF#000000##FFFFFF
##6C29AB1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#5F4A68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c29ab;
/* rgb */ color: rgb(108, 41, 171);
/* oklch */ color: oklch(45.0% 0.194 302.5);
Tailwind
colors: {
  custom: {
    50: '#9c6ac5',
    500: '#6c29ab',
    950: '#000000',
  },
}
SCSS
$custom: #6c29ab;
$custom-light: #9c6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c29ab",
  "rgb": {
    "r": 108,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 270.923,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44971,
    "c": 0.19352,
    "h": 302.5
  },
  "luminance": 0.07714
}

Semantic roles & 50–950 ramp

primary
#6C29AB
secondary
#97C46C
accent
#E44391
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C29AB

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

Preview Lab → · Contrast checker → · Palette generator →

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