#6E28A4#6E28A4

#6E28A4 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.188 H 305.6°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#6E28A4
RGBrgb(110, 40, 164)
HSLhsl(274, 61%, 40%)
HSVhsv(274, 76%, 64%)
CMYKcmyk(32.9%, 75.6%, 0%, 35.7%)
CIE-LABlab(32.95, 52.38, -53.69)
CIE-LCHlch(32.95, 75.01, 314.29°)
OKLaboklab(44.55% 0.1094 -0.1527)
OKLCHoklch(44.55% 0.188 305.6)
XYZxyz(13.8885, 7.5130, 35.8332)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E28A4 #5EA428
analogous
#3028A4 #6E28A4 #A4289C
triadic
#6E28A4 #A46E28 #28A46E
tetradic
#6E28A4 #A43028 #5EA428 #289CA4
square
#6E28A4 #A43028 #5EA428 #289CA4
split-complementary
#6E28A4 #9CA428 #28A430
monochromatic
#2C1042 #4D1C73 #6E28A4 #8E3ACF #AA6BDB

Accessibility & contrast

On white

8.39
#6E28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#6E28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E28A4
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E28A4#FFFFFF#000000##FFFFFF
##6E28A41.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#004EA1
Tritanopia (blue-blind)
#644764
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6e28a4;
/* rgb */ color: rgb(110, 40, 164);
/* oklch */ color: oklch(44.5% 0.188 305.6);
Tailwind
colors: {
  custom: {
    50: '#9d69c0',
    500: '#6e28a4',
    950: '#000000',
  },
}
SCSS
$custom: #6e28a4;
$custom-light: #9d69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6e28a4",
  "rgb": {
    "r": 110,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 273.871,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.4455,
    "c": 0.18789,
    "h": 305.6
  },
  "luminance": 0.07513
}

Semantic roles & 50–950 ramp

primary
#6E28A4
secondary
#8EC166
accent
#E4448A
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6E28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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