#6D28A4#6D28A4

#6D28A4 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.188 H 305.1°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#6D28A4
RGBrgb(109, 40, 164)
HSLhsl(273, 61%, 40%)
HSVhsv(273, 76%, 64%)
CMYKcmyk(33.5%, 75.6%, 0%, 35.7%)
CIE-LABlab(32.81, 52.19, -53.92)
CIE-LCHlch(32.81, 75.04, 314.06°)
OKLaboklab(44.42% 0.108 -0.1535)
OKLCHoklch(44.42% 0.188 305.1)
XYZxyz(13.7648, 7.4492, 35.8274)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D28A4 #5FA428
analogous
#2F28A4 #6D28A4 #A4289D
triadic
#6D28A4 #A46D28 #28A46D
tetradic
#6D28A4 #A42F28 #5FA428 #289DA4
square
#6D28A4 #A42F28 #5FA428 #289DA4
split-complementary
#6D28A4 #9DA428 #28A42F
monochromatic
#2C1042 #4C1C73 #6D28A4 #8D3ACF #A96BDB

Accessibility & contrast

On white

8.43
#6D28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6D28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D28A4
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D28A4#FFFFFF#000000##FFFFFF
##6D28A41.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#004DA1
Tritanopia (blue-blind)
#634764
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6d28a4;
/* rgb */ color: rgb(109, 40, 164);
/* oklch */ color: oklch(44.4% 0.188 305.1);
Tailwind
colors: {
  custom: {
    50: '#9c69c0',
    500: '#6d28a4',
    950: '#000000',
  },
}
SCSS
$custom: #6d28a4;
$custom-light: #9c69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d28a4",
  "rgb": {
    "r": 109,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 273.387,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.44423,
    "c": 0.18765,
    "h": 305.1
  },
  "luminance": 0.07449
}

Semantic roles & 50–950 ramp

primary
#6D28A4
secondary
#8FC166
accent
#E4448B
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6D28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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