#6C28AB#6C28AB

#6C28AB is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.9% C 0.195 H 302.6°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#6C28AB
RGBrgb(108, 40, 171)
HSLhsl(271, 62%, 41%)
HSVhsv(271, 77%, 67%)
CMYKcmyk(36.8%, 76.6%, 0%, 32.9%)
CIE-LABlab(33.23, 53.66, -57.44)
CIE-LCHlch(33.23, 78.61, 313.05°)
OKLaboklab(44.87% 0.105 -0.1638)
OKLCHoklch(44.87% 0.195 302.6)
XYZxyz(14.2921, 7.6460, 39.2430)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C28AB #67AB28
analogous
#2B28AB #6C28AB #AB28A9
triadic
#6C28AB #AB6C28 #28AB6C
tetradic
#6C28AB #AB2B28 #67AB28 #28A9AB
square
#6C28AB #AB2B28 #67AB28 #28A9AB
split-complementary
#6C28AB #A9AB28 #28AB2B
monochromatic
#2D1148 #4D1C79 #6C28AB #8B3ED2 #A970DE

Accessibility & contrast

On white

8.30
#6C28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6C28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C28AB
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C28AB#FFFFFF#000000##FFFFFF
##6C28AB1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#5F4A68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c28ab;
/* rgb */ color: rgb(108, 40, 171);
/* oklch */ color: oklch(44.9% 0.195 302.6);
Tailwind
colors: {
  custom: {
    50: '#9c69c5',
    500: '#6c28ab',
    950: '#000000',
  },
}
SCSS
$custom: #6c28ab;
$custom-light: #9c69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c28ab",
  "rgb": {
    "r": 108,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 271.145,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44869,
    "c": 0.19458,
    "h": 302.6
  },
  "luminance": 0.07646
}

Semantic roles & 50–950 ramp

primary
#6C28AB
secondary
#96C46A
accent
#E54391
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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