#6C28C4#6C28C4

#6C28C4 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.220 H 296.4°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#6C28C4
RGBrgb(108, 40, 196)
HSLhsl(266, 66%, 46%)
HSVhsv(266, 80%, 77%)
CMYKcmyk(44.9%, 79.6%, 0%, 23.1%)
CIE-LABlab(35.38, 59.71, -68.74)
CIE-LCHlch(35.38, 91.05, 310.98°)
OKLaboklab(47.03% 0.098 -0.197)
OKLCHoklch(47.03% 0.22 296.4)
XYZxyz(16.9043, 8.6909, 53.0007)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C28C4 #80C428
analogous
#2832C4 #6C28C4 #BA28C4
triadic
#6C28C4 #C46C28 #28C46C
tetradic
#6C28C4 #C42832 #80C428 #28C4BA
square
#6C28C4 #C42832 #80C428 #28C4BA
split-complementary
#6C28C4 #C4BA28 #32C428
monochromatic
#34135E #501E91 #6C28C4 #8C4EDB #AD81E5

Accessibility & contrast

On white

7.67
#6C28C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6C28C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C28C4
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C28C4#FFFFFF#000000##FFFFFF
##6C28C41.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C8
Deuteranopia (green-blind)
#0051C1
Tritanopia (blue-blind)
#545477
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6c28c4;
/* rgb */ color: rgb(108, 40, 196);
/* oklch */ color: oklch(47.0% 0.220 296.4);
Tailwind
colors: {
  custom: {
    50: '#9f6bd7',
    500: '#6c28c4',
    950: '#000000',
  },
}
SCSS
$custom: #6c28c4;
$custom-light: #9f6bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c28c4",
  "rgb": {
    "r": 108,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 266.154,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47029,
    "c": 0.22003,
    "h": 296.4
  },
  "luminance": 0.08691
}

Semantic roles & 50–950 ramp

primary
#6C28C4
secondary
#A9CE7A
accent
#E93F9F
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #6C28C4

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

Preview Lab → · Contrast checker → · Palette generator →

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