#6C26A2#6C26A2

#6C26A2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.188 H 305.5°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#6C26A2
RGBrgb(108, 38, 162)
HSLhsl(274, 62%, 39%)
HSVhsv(274, 77%, 64%)
CMYKcmyk(33.3%, 76.5%, 0%, 36.5%)
CIE-LABlab(32.22, 52.37, -53.68)
CIE-LCHlch(32.22, 74.99, 314.29°)
OKLaboklab(43.93% 0.1088 -0.1528)
OKLCHoklch(43.93% 0.188 305.5)
XYZxyz(13.3976, 7.1831, 34.8561)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C26A2 #5CA226
analogous
#2E26A2 #6C26A2 #A2269A
triadic
#6C26A2 #A26C26 #26A26C
tetradic
#6C26A2 #A22E26 #5CA226 #269AA2
square
#6C26A2 #A22E26 #5CA226 #269AA2
split-complementary
#6C26A2 #9AA226 #26A22E
monochromatic
#2A0F3F #4B1A70 #6C26A2 #8D35D0 #A967DB

Accessibility & contrast

On white

8.62
#6C26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6C26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C26A2
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C26A2#FFFFFF#000000##FFFFFF
##6C26A21.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#624563
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6c26a2;
/* rgb */ color: rgb(108, 38, 162);
/* oklch */ color: oklch(43.9% 0.188 305.5);
Tailwind
colors: {
  custom: {
    50: '#9b68be',
    500: '#6c26a2',
    950: '#000000',
  },
}
SCSS
$custom: #6c26a2;
$custom-light: #9b68be;
$custom-dark: #000000;
JSON
{
  "hex": "#6c26a2",
  "rgb": {
    "r": 108,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 273.871,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43929,
    "c": 0.18758,
    "h": 305.5
  },
  "luminance": 0.07183
}

Semantic roles & 50–950 ramp

primary
#6C26A2
secondary
#8CC163
accent
#E54389
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6C26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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