#6A28A2#6A28A2

#6A28A2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.185 H 304.3°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#6A28A2
RGBrgb(106, 40, 162)
HSLhsl(272, 60%, 40%)
HSVhsv(272, 75%, 64%)
CMYKcmyk(34.6%, 75.3%, 0%, 36.5%)
CIE-LABlab(32.24, 51.16, -53.66)
CIE-LCHlch(32.24, 74.14, 313.63°)
OKLaboklab(43.88% 0.1041 -0.1528)
OKLCHoklch(43.88% 0.185 304.3)
XYZxyz(13.2227, 7.1904, 34.8667)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28A2 #60A228
analogous
#2D28A2 #6A28A2 #A2289D
triadic
#6A28A2 #A26A28 #28A26A
tetradic
#6A28A2 #A22D28 #60A228 #289DA2
square
#6A28A2 #A22D28 #60A228 #289DA2
split-complementary
#6A28A2 #9DA228 #28A22D
monochromatic
#2A1040 #4A1C71 #6A28A2 #8A39CE #A76ADA

Accessibility & contrast

On white

8.61
#6A28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6A28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A28A2
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28A2#FFFFFF#000000##FFFFFF
##6A28A21.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#5F4663
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6a28a2;
/* rgb */ color: rgb(106, 40, 162);
/* oklch */ color: oklch(43.9% 0.185 304.3);
Tailwind
colors: {
  custom: {
    50: '#9a69be',
    500: '#6a28a2',
    950: '#000000',
  },
}
SCSS
$custom: #6a28a2;
$custom-light: #9a69be;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28a2",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 272.459,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43882,
    "c": 0.18492,
    "h": 304.3
  },
  "luminance": 0.0719
}

Semantic roles & 50–950 ramp

primary
#6A28A2
secondary
#8FC165
accent
#E4448D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6A28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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