#6C28A5#6C28A5

#6C28A5 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.188 H 304.4°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#6C28A5
RGBrgb(108, 40, 165)
HSLhsl(273, 61%, 40%)
HSVhsv(273, 76%, 65%)
CMYKcmyk(34.5%, 75.8%, 0%, 35.3%)
CIE-LABlab(32.75, 52.24, -54.63)
CIE-LCHlch(32.75, 75.59, 313.72°)
OKLaboklab(44.38% 0.1063 -0.1556)
OKLCHoklch(44.38% 0.188 304.4)
XYZxyz(13.7331, 7.4224, 36.2992)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C28A5 #61A528
analogous
#2D28A5 #6C28A5 #A528A0
triadic
#6C28A5 #A56C28 #28A56C
tetradic
#6C28A5 #A52D28 #61A528 #28A0A5
square
#6C28A5 #A52D28 #61A528 #28A0A5
split-complementary
#6C28A5 #A0A528 #28A52D
monochromatic
#2C1042 #4C1C74 #6C28A5 #8C3BCF #A96CDB

Accessibility & contrast

On white

8.45
#6C28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6C28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C28A5
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C28A5#FFFFFF#000000##FFFFFF
##6C28A51.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#614765
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6c28a5;
/* rgb */ color: rgb(108, 40, 165);
/* oklch */ color: oklch(44.4% 0.188 304.4);
Tailwind
colors: {
  custom: {
    50: '#9b69c1',
    500: '#6c28a5',
    950: '#000000',
  },
}
SCSS
$custom: #6c28a5;
$custom-light: #9b69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c28a5",
  "rgb": {
    "r": 108,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 272.64,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44377,
    "c": 0.18844,
    "h": 304.4
  },
  "luminance": 0.07422
}

Semantic roles & 50–950 ramp

primary
#6C28A5
secondary
#90C267
accent
#E4448D
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6C28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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