#6C28AE#6C28AE

#6C28AE is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.198 H 301.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#6C28AE
RGBrgb(108, 40, 174)
HSLhsl(270, 63%, 42%)
HSVhsv(270, 77%, 68%)
CMYKcmyk(37.9%, 77%, 0%, 31.8%)
CIE-LABlab(33.48, 54.38, -58.84)
CIE-LCHlch(33.48, 80.12, 312.75°)
OKLaboklab(45.12% 0.1042 -0.1679)
OKLCHoklch(45.12% 0.198 301.8)
XYZxyz(14.5813, 7.7617, 40.7661)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C28AE #6AAE28
analogous
#2928AE #6C28AE #AE28AD
triadic
#6C28AE #AE6C28 #28AE6C
tetradic
#6C28AE #AE2928 #6AAE28 #28ADAE
square
#6C28AE #AE2928 #6AAE28 #28ADAE
split-complementary
#6C28AE #ADAE28 #28AE29
monochromatic
#2E114A #4D1D7C #6C28AE #8B40D3 #A972DF

Accessibility & contrast

On white

8.23
#6C28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C28AE
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C28AE#FFFFFF#000000##FFFFFF
##6C28AE1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#004EAB
Tritanopia (blue-blind)
#5E4B6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c28ae;
/* rgb */ color: rgb(108, 40, 174);
/* oklch */ color: oklch(45.1% 0.198 301.8);
Tailwind
colors: {
  custom: {
    50: '#9c6ac7',
    500: '#6c28ae',
    950: '#000000',
  },
}
SCSS
$custom: #6c28ae;
$custom-light: #9c6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c28ae",
  "rgb": {
    "r": 108,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 270.448,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45119,
    "c": 0.19765,
    "h": 301.8
  },
  "luminance": 0.07762
}

Semantic roles & 50–950 ramp

primary
#6C28AE
secondary
#98C66C
accent
#E64293
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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