#6828AE#6828AE

#6828AE is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.6% C 0.197 H 300.0°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#6828AE
RGBrgb(104, 40, 174)
HSLhsl(269, 63%, 42%)
HSVhsv(269, 77%, 68%)
CMYKcmyk(40.2%, 77%, 0%, 31.8%)
CIE-LABlab(32.95, 53.71, -59.72)
CIE-LCHlch(32.95, 80.32, 311.97°)
OKLaboklab(44.64% 0.0984 -0.1707)
OKLCHoklch(44.64% 0.197 300)
XYZxyz(14.1058, 7.5165, 40.7439)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828AE #6EAE28
analogous
#282BAE #6828AE #AB28AE
triadic
#6828AE #AE6828 #28AE68
tetradic
#6828AE #AE282B #6EAE28 #28AEAB
square
#6828AE #AE282B #6EAE28 #28AEAB
split-complementary
#6828AE #AEAB28 #2BAE28
monochromatic
#2D114A #4A1D7C #6828AE #8640D3 #A672DF

Accessibility & contrast

On white

8.39
#6828AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#6828AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6828AE
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6828AE#FFFFFF#000000##FFFFFF
##6828AE1.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)
#004DB2
Deuteranopia (green-blind)
#004CAB
Tritanopia (blue-blind)
#584C6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6828ae;
/* rgb */ color: rgb(104, 40, 174);
/* oklch */ color: oklch(44.6% 0.197 300.0);
Tailwind
colors: {
  custom: {
    50: '#9a69c7',
    500: '#6828ae',
    950: '#000000',
  },
}
SCSS
$custom: #6828ae;
$custom-light: #9a69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6828ae",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 268.657,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44635,
    "c": 0.19698,
    "h": 300
  },
  "luminance": 0.07517
}

Semantic roles & 50–950 ramp

primary
#6828AE
secondary
#9BC66C
accent
#E64298
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6828AE

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

Preview Lab → · Contrast checker → · Palette generator →

#6828AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva