#6C26B1#6C26B1

#6C26B1 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.2% C 0.203 H 301.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#6C26B1
RGBrgb(108, 38, 177)
HSLhsl(270, 65%, 42%)
HSVhsv(270, 79%, 69%)
CMYKcmyk(39%, 78.5%, 0%, 30.6%)
CIE-LABlab(33.45, 55.90, -60.67)
CIE-LCHlch(33.45, 82.50, 312.66°)
OKLaboklab(45.18% 0.1051 -0.1733)
OKLCHoklch(45.18% 0.203 301.2)
XYZxyz(14.8113, 7.7486, 42.3018)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C26B1 #6BB126
analogous
#2726B1 #6C26B1 #B126B1
triadic
#6C26B1 #B16C26 #26B16C
tetradic
#6C26B1 #B12726 #6BB126 #26B1B1
square
#6C26B1 #B12726 #6BB126 #26B1B1
split-complementary
#6C26B1 #B1B126 #26B127
monochromatic
#2F104C #4D1B7F #6C26B1 #8B3FD6 #A971E0

Accessibility & contrast

On white

8.24
#6C26B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6C26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C26B1
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C26B1#FFFFFF#000000##FFFFFF
##6C26B11.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#5C4B6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c26b1;
/* rgb */ color: rgb(108, 38, 177);
/* oklch */ color: oklch(45.2% 0.203 301.2);
Tailwind
colors: {
  custom: {
    50: '#9d69c9',
    500: '#6c26b1',
    950: '#000000',
  },
}
SCSS
$custom: #6c26b1;
$custom-light: #9d69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6c26b1",
  "rgb": {
    "r": 108,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 270.216,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45177,
    "c": 0.20269,
    "h": 301.2
  },
  "luminance": 0.07749
}

Semantic roles & 50–950 ramp

primary
#6C26B1
secondary
#99C76B
accent
#E84093
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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