#6A28AE#6A28AE

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

Color values

HEX#6A28AE
RGBrgb(106, 40, 174)
HSLhsl(270, 63%, 42%)
HSVhsv(270, 77%, 68%)
CMYKcmyk(39.1%, 77%, 0%, 31.8%)
CIE-LABlab(33.22, 54.04, -59.28)
CIE-LCHlch(33.22, 80.22, 312.35°)
OKLaboklab(44.88% 0.1013 -0.1693)
OKLCHoklch(44.88% 0.197 300.9)
XYZxyz(14.3407, 7.6376, 40.7549)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28AE #6CAE28
analogous
#2829AE #6A28AE #AD28AE
triadic
#6A28AE #AE6A28 #28AE6A
tetradic
#6A28AE #AE2829 #6CAE28 #28AEAD
square
#6A28AE #AE2829 #6CAE28 #28AEAD
split-complementary
#6A28AE #AEAD28 #29AE28
monochromatic
#2D114A #4C1D7C #6A28AE #8940D3 #A772DF

Accessibility & contrast

On white

8.31
#6A28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A28AE
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28AE#FFFFFF#000000##FFFFFF
##6A28AE1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#004DAB
Tritanopia (blue-blind)
#5B4B6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a28ae;
/* rgb */ color: rgb(106, 40, 174);
/* oklch */ color: oklch(44.9% 0.197 300.9);
Tailwind
colors: {
  custom: {
    50: '#9b69c7',
    500: '#6a28ae',
    950: '#000000',
  },
}
SCSS
$custom: #6a28ae;
$custom-light: #9b69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28ae",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 269.552,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44876,
    "c": 0.1973,
    "h": 300.9
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#6A28AE
secondary
#9AC66C
accent
#E64295
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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