#6E28A6#6E28A6

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

Color values

HEX#6E28A6
RGBrgb(110, 40, 166)
HSLhsl(273, 61%, 40%)
HSVhsv(273, 76%, 65%)
CMYKcmyk(33.7%, 75.9%, 0%, 34.9%)
CIE-LABlab(33.10, 52.84, -54.64)
CIE-LCHlch(33.10, 76.01, 314.04°)
OKLaboklab(44.71% 0.109 -0.1555)
OKLCHoklch(44.71% 0.19 305)
XYZxyz(14.0706, 7.5858, 36.7919)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E28A6 #60A628
analogous
#2F28A6 #6E28A6 #A6289F
triadic
#6E28A6 #A66E28 #28A66E
tetradic
#6E28A6 #A62F28 #60A628 #289FA6
square
#6E28A6 #A62F28 #60A628 #289FA6
split-complementary
#6E28A6 #9FA628 #28A62F
monochromatic
#2D1043 #4D1C75 #6E28A6 #8E3BD0 #AA6DDC

Accessibility & contrast

On white

8.34
#6E28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6E28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E28A6
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E28A6#FFFFFF#000000##FFFFFF
##6E28A61.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#634765
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6e28a6;
/* rgb */ color: rgb(110, 40, 166);
/* oklch */ color: oklch(44.7% 0.190 305.0);
Tailwind
colors: {
  custom: {
    50: '#9d69c1',
    500: '#6e28a6',
    950: '#000000',
  },
}
SCSS
$custom: #6e28a6;
$custom-light: #9d69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6e28a6",
  "rgb": {
    "r": 110,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 273.333,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4471,
    "c": 0.18991,
    "h": 305
  },
  "luminance": 0.07586
}

Semantic roles & 50–950 ramp

primary
#6E28A6
secondary
#90C267
accent
#E4448B
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6E28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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