#6A28A6#6A28A6

#6A28A6 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.2% C 0.189 H 303.1°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#6A28A6
RGBrgb(106, 40, 166)
HSLhsl(271, 61%, 40%)
HSVhsv(271, 76%, 65%)
CMYKcmyk(36.1%, 75.9%, 0%, 34.9%)
CIE-LABlab(32.56, 52.12, -55.55)
CIE-LCHlch(32.56, 76.17, 313.17°)
OKLaboklab(44.21% 0.1032 -0.1584)
OKLCHoklch(44.21% 0.189 303.1)
XYZxyz(13.5840, 7.3349, 36.7691)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28A6 #64A628
analogous
#2B28A6 #6A28A6 #A628A3
triadic
#6A28A6 #A66A28 #28A66A
tetradic
#6A28A6 #A62B28 #64A628 #28A3A6
square
#6A28A6 #A62B28 #64A628 #28A3A6
split-complementary
#6A28A6 #A3A628 #28A62B
monochromatic
#2B1043 #4B1C75 #6A28A6 #893BD0 #A76DDC

Accessibility & contrast

On white

8.51
#6A28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6A28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A28A6
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28A6#FFFFFF#000000##FFFFFF
##6A28A61.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#5E4865
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6a28a6;
/* rgb */ color: rgb(106, 40, 166);
/* oklch */ color: oklch(44.2% 0.189 303.1);
Tailwind
colors: {
  custom: {
    50: '#9a69c1',
    500: '#6a28a6',
    950: '#000000',
  },
}
SCSS
$custom: #6a28a6;
$custom-light: #9a69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28a6",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 271.429,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44208,
    "c": 0.18905,
    "h": 303.1
  },
  "luminance": 0.07335
}

Semantic roles & 50–950 ramp

primary
#6A28A6
secondary
#93C267
accent
#E44490
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6A28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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