#6C26A6#6C26A6

#6C26A6 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.3% C 0.192 H 304.3°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#6C26A6
RGBrgb(108, 38, 166)
HSLhsl(273, 63%, 40%)
HSVhsv(273, 77%, 65%)
CMYKcmyk(34.9%, 77.1%, 0%, 34.9%)
CIE-LABlab(32.54, 53.30, -55.57)
CIE-LCHlch(32.54, 77.00, 313.81°)
OKLaboklab(44.26% 0.1079 -0.1583)
OKLCHoklch(44.26% 0.192 304.3)
XYZxyz(13.7588, 7.3276, 36.7585)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C26A6 #60A626
analogous
#2C26A6 #6C26A6 #A626A0
triadic
#6C26A6 #A66C26 #26A66C
tetradic
#6C26A6 #A62C26 #60A626 #26A0A6
square
#6C26A6 #A62C26 #60A626 #26A0A6
split-complementary
#6C26A6 #A0A626 #26A62C
monochromatic
#2B0F42 #4C1B74 #6C26A6 #8C38D1 #A96ADD

Accessibility & contrast

On white

8.52
#6C26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6C26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C26A6
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C26A6#FFFFFF#000000##FFFFFF
##6C26A61.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#614765
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6c26a6;
/* rgb */ color: rgb(108, 38, 166);
/* oklch */ color: oklch(44.3% 0.192 304.3);
Tailwind
colors: {
  custom: {
    50: '#9c68c1',
    500: '#6c26a6',
    950: '#000000',
  },
}
SCSS
$custom: #6c26a6;
$custom-light: #9c68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c26a6",
  "rgb": {
    "r": 108,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 272.813,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.44255,
    "c": 0.19161,
    "h": 304.3
  },
  "luminance": 0.07328
}

Semantic roles & 50–950 ramp

primary
#6C26A6
secondary
#8FC365
accent
#E6428C
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6C26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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