#6C28A8#6C28A8

#6C28A8 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.6% C 0.192 H 303.5°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#6C28A8
RGBrgb(108, 40, 168)
HSLhsl(272, 62%, 41%)
HSVhsv(272, 76%, 66%)
CMYKcmyk(35.7%, 76.2%, 0%, 34.1%)
CIE-LABlab(32.99, 52.95, -56.04)
CIE-LCHlch(32.99, 77.10, 313.38°)
OKLaboklab(44.62% 0.1057 -0.1597)
OKLCHoklch(44.62% 0.192 303.5)
XYZxyz(14.0094, 7.5329, 37.7541)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C28A8 #64A828
analogous
#2C28A8 #6C28A8 #A828A4
triadic
#6C28A8 #A86C28 #28A86C
tetradic
#6C28A8 #A82C28 #64A828 #28A4A8
square
#6C28A8 #A82C28 #64A828 #28A4A8
split-complementary
#6C28A8 #A4A828 #28A82C
monochromatic
#2C1045 #4C1C77 #6C28A8 #8B3DD1 #A96EDC

Accessibility & contrast

On white

8.38
#6C28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#6C28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C28A8
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C28A8#FFFFFF#000000##FFFFFF
##6C28A81.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#604967
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c28a8;
/* rgb */ color: rgb(108, 40, 168);
/* oklch */ color: oklch(44.6% 0.192 303.5);
Tailwind
colors: {
  custom: {
    50: '#9c69c3',
    500: '#6c28a8',
    950: '#000000',
  },
}
SCSS
$custom: #6c28a8;
$custom-light: #9c69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c28a8",
  "rgb": {
    "r": 108,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 271.875,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44621,
    "c": 0.19151,
    "h": 303.5
  },
  "luminance": 0.07533
}

Semantic roles & 50–950 ramp

primary
#6C28A8
secondary
#93C369
accent
#E5438F
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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