#6A28A4#6A28A4

#6A28A4 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.187 H 303.7°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#6A28A4
RGBrgb(106, 40, 164)
HSLhsl(272, 61%, 40%)
HSVhsv(272, 76%, 64%)
CMYKcmyk(35.4%, 75.6%, 0%, 35.7%)
CIE-LABlab(32.40, 51.64, -54.61)
CIE-LCHlch(32.40, 75.16, 313.40°)
OKLaboklab(44.04% 0.1037 -0.1556)
OKLCHoklch(44.04% 0.187 303.7)
XYZxyz(13.4019, 7.2621, 35.8104)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28A4 #62A428
analogous
#2C28A4 #6A28A4 #A428A0
triadic
#6A28A4 #A46A28 #28A46A
tetradic
#6A28A4 #A42C28 #62A428 #28A0A4
square
#6A28A4 #A42C28 #62A428 #28A0A4
split-complementary
#6A28A4 #A0A428 #28A42C
monochromatic
#2A1042 #4A1C73 #6A28A4 #893ACF #A76BDB

Accessibility & contrast

On white

8.56
#6A28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#6A28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A28A4
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28A4#FFFFFF#000000##FFFFFF
##6A28A41.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#5E4764
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6a28a4;
/* rgb */ color: rgb(106, 40, 164);
/* oklch */ color: oklch(44.0% 0.187 303.7);
Tailwind
colors: {
  custom: {
    50: '#9a69c0',
    500: '#6a28a4',
    950: '#000000',
  },
}
SCSS
$custom: #6a28a4;
$custom-light: #9a69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28a4",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 271.935,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.44044,
    "c": 0.18698,
    "h": 303.7
  },
  "luminance": 0.07262
}

Semantic roles & 50–950 ramp

primary
#6A28A4
secondary
#91C166
accent
#E4448F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6A28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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