#6A28AC#6A28AC

#6A28AC is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.195 H 301.4°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#6A28AC
RGBrgb(106, 40, 172)
HSLhsl(270, 62%, 42%)
HSVhsv(270, 77%, 67%)
CMYKcmyk(38.4%, 76.7%, 0%, 32.5%)
CIE-LABlab(33.05, 53.56, -58.36)
CIE-LCHlch(33.05, 79.21, 312.55°)
OKLaboklab(44.71% 0.1018 -0.1666)
OKLCHoklch(44.71% 0.195 301.4)
XYZxyz(14.1472, 7.5602, 39.7357)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28AC #6AAC28
analogous
#2828AC #6A28AC #AC28AC
triadic
#6A28AC #AC6A28 #28AC6A
tetradic
#6A28AC #AC2828 #6AAC28 #28ACAC
square
#6A28AC #AC2828 #6AAC28 #28ACAC
split-complementary
#6A28AC #ACAC28 #28AC28
monochromatic
#2D1149 #4B1C7A #6A28AC #893FD2 #A771DE

Accessibility & contrast

On white

8.36
#6A28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#6A28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A28AC
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28AC#FFFFFF#000000##FFFFFF
##6A28AC1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#5B4A69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a28ac;
/* rgb */ color: rgb(106, 40, 172);
/* oklch */ color: oklch(44.7% 0.195 301.4);
Tailwind
colors: {
  custom: {
    50: '#9b69c6',
    500: '#6a28ac',
    950: '#000000',
  },
}
SCSS
$custom: #6a28ac;
$custom-light: #9b69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28ac",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 270,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44707,
    "c": 0.19524,
    "h": 301.4
  },
  "luminance": 0.0756
}

Semantic roles & 50–950 ramp

primary
#6A28AC
secondary
#98C56B
accent
#E54294
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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