#6A28A9#6A28A9

#6A28A9 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.5% C 0.192 H 302.3°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#6A28A9
RGBrgb(106, 40, 169)
HSLhsl(271, 62%, 41%)
HSVhsv(271, 76%, 66%)
CMYKcmyk(37.3%, 76.3%, 0%, 33.7%)
CIE-LABlab(32.80, 52.84, -56.96)
CIE-LCHlch(32.80, 77.69, 312.85°)
OKLaboklab(44.46% 0.1025 -0.1625)
OKLCHoklch(44.46% 0.192 302.3)
XYZxyz(13.8624, 7.4463, 38.2354)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28A9 #67A928
analogous
#2A28A9 #6A28A9 #A928A7
triadic
#6A28A9 #A96A28 #28A96A
tetradic
#6A28A9 #A92A28 #67A928 #28A7A9
square
#6A28A9 #A92A28 #67A928 #28A7A9
split-complementary
#6A28A9 #A7A928 #28A92A
monochromatic
#2C1146 #4B1C78 #6A28A9 #893DD1 #A76FDD

Accessibility & contrast

On white

8.44
#6A28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6A28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A28A9
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28A9#FFFFFF#000000##FFFFFF
##6A28A91.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#5D4967
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6a28a9;
/* rgb */ color: rgb(106, 40, 169);
/* oklch */ color: oklch(44.5% 0.192 302.3);
Tailwind
colors: {
  custom: {
    50: '#9b69c3',
    500: '#6a28a9',
    950: '#000000',
  },
}
SCSS
$custom: #6a28a9;
$custom-light: #9b69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28a9",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 270.698,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44456,
    "c": 0.19215,
    "h": 302.3
  },
  "luminance": 0.07446
}

Semantic roles & 50–950 ramp

primary
#6A28A9
secondary
#95C469
accent
#E54392
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6A28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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