#6C28AF#6C28AF

#6C28AF is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.2% C 0.199 H 301.6°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#6C28AF
RGBrgb(108, 40, 175)
HSLhsl(270, 63%, 42%)
HSVhsv(270, 77%, 69%)
CMYKcmyk(38.3%, 77.1%, 0%, 31.4%)
CIE-LABlab(33.56, 54.62, -59.30)
CIE-LCHlch(33.56, 80.62, 312.65°)
OKLaboklab(45.2% 0.104 -0.1693)
OKLCHoklch(45.2% 0.199 301.6)
XYZxyz(14.6791, 7.8008, 41.2815)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C28AF #6BAF28
analogous
#2828AF #6C28AF #AF28AF
triadic
#6C28AF #AF6C28 #28AF6C
tetradic
#6C28AF #AF2828 #6BAF28 #28AFAF
square
#6C28AF #AF2828 #6BAF28 #28AFAF
split-complementary
#6C28AF #AFAF28 #28AF28
monochromatic
#2F114B #4D1D7D #6C28AF #8B41D4 #A973DF

Accessibility & contrast

On white

8.20
#6C28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6C28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C28AF
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C28AF#FFFFFF#000000##FFFFFF
##6C28AF1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#5D4B6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c28af;
/* rgb */ color: rgb(108, 40, 175);
/* oklch */ color: oklch(45.2% 0.199 301.6);
Tailwind
colors: {
  custom: {
    50: '#9c6ac8',
    500: '#6c28af',
    950: '#000000',
  },
}
SCSS
$custom: #6c28af;
$custom-light: #9c6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#6c28af",
  "rgb": {
    "r": 108,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 270.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45203,
    "c": 0.19867,
    "h": 301.6
  },
  "luminance": 0.07801
}

Semantic roles & 50–950 ramp

primary
#6C28AF
secondary
#99C66D
accent
#E64293
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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