#6A28A5#6A28A5

#6A28A5 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.188 H 303.4°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#6A28A5
RGBrgb(106, 40, 165)
HSLhsl(272, 61%, 40%)
HSVhsv(272, 76%, 65%)
CMYKcmyk(35.8%, 75.8%, 0%, 35.3%)
CIE-LABlab(32.48, 51.88, -55.08)
CIE-LCHlch(32.48, 75.67, 313.28°)
OKLaboklab(44.13% 0.1035 -0.157)
OKLCHoklch(44.13% 0.188 303.4)
XYZxyz(13.4926, 7.2984, 36.2879)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28A5 #63A528
analogous
#2B28A5 #6A28A5 #A528A2
triadic
#6A28A5 #A56A28 #28A56A
tetradic
#6A28A5 #A52B28 #63A528 #28A2A5
square
#6A28A5 #A52B28 #63A528 #28A2A5
split-complementary
#6A28A5 #A2A528 #28A52B
monochromatic
#2B1042 #4A1C74 #6A28A5 #893BCF #A76CDB

Accessibility & contrast

On white

8.54
#6A28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#6A28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A28A5
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28A5#FFFFFF#000000##FFFFFF
##6A28A51.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a28a5;
/* rgb */ color: rgb(106, 40, 165);
/* oklch */ color: oklch(44.1% 0.188 303.4);
Tailwind
colors: {
  custom: {
    50: '#9a69c1',
    500: '#6a28a5',
    950: '#000000',
  },
}
SCSS
$custom: #6a28a5;
$custom-light: #9a69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28a5",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 271.68,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44126,
    "c": 0.18802,
    "h": 303.4
  },
  "luminance": 0.07298
}

Semantic roles & 50–950 ramp

primary
#6A28A5
secondary
#92C267
accent
#E4448F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6A28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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