#6A28AA#6A28AA

#6A28AA is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.193 H 302.0°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#6A28AA
RGBrgb(106, 40, 170)
HSLhsl(270, 62%, 41%)
HSVhsv(270, 76%, 67%)
CMYKcmyk(37.6%, 76.5%, 0%, 33.3%)
CIE-LABlab(32.88, 53.08, -57.43)
CIE-LCHlch(32.88, 78.20, 312.75°)
OKLaboklab(44.54% 0.1023 -0.1639)
OKLCHoklch(44.54% 0.193 302)
XYZxyz(13.9566, 7.4840, 38.7317)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28AA #68AA28
analogous
#2928AA #6A28AA #AA28A9
triadic
#6A28AA #AA6A28 #28AA6A
tetradic
#6A28AA #AA2928 #68AA28 #28A9AA
square
#6A28AA #AA2928 #68AA28 #28A9AA
split-complementary
#6A28AA #A9AA28 #28AA29
monochromatic
#2C1147 #4B1C78 #6A28AA #893ED2 #A76FDD

Accessibility & contrast

On white

8.41
#6A28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#6A28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A28AA
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28AA#FFFFFF#000000##FFFFFF
##6A28AA1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#004DA7
Tritanopia (blue-blind)
#5C4A68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6a28aa;
/* rgb */ color: rgb(106, 40, 170);
/* oklch */ color: oklch(44.5% 0.193 302.0);
Tailwind
colors: {
  custom: {
    50: '#9b69c4',
    500: '#6a28aa',
    950: '#000000',
  },
}
SCSS
$custom: #6a28aa;
$custom-light: #9b69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28aa",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 270.462,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44539,
    "c": 0.19318,
    "h": 302
  },
  "luminance": 0.07484
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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