#6828AA#6828AA

#6828AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.193 H 301.0°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#6828AA
RGBrgb(104, 40, 170)
HSLhsl(270, 62%, 41%)
HSVhsv(270, 76%, 67%)
CMYKcmyk(38.8%, 76.5%, 0%, 33.3%)
CIE-LABlab(32.62, 52.73, -57.87)
CIE-LCHlch(32.62, 78.29, 312.34°)
OKLaboklab(44.3% 0.0994 -0.1652)
OKLCHoklch(44.3% 0.193 301)
XYZxyz(13.7216, 7.3628, 38.7207)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828AA #6AAA28
analogous
#2829AA #6828AA #A928AA
triadic
#6828AA #AA6828 #28AA68
tetradic
#6828AA #AA2829 #6AAA28 #28AAA9
square
#6828AA #AA2829 #6AAA28 #28AAA9
split-complementary
#6828AA #AAA928 #29AA28
monochromatic
#2B1147 #4A1C78 #6828AA #863ED2 #A56FDD

Accessibility & contrast

On white

8.49
#6828AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6828AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6828AA#FFFFFF#000000##FFFFFF
##6828AA1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#004CA7
Tritanopia (blue-blind)
#594A68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6828aa;
/* rgb */ color: rgb(104, 40, 170);
/* oklch */ color: oklch(44.3% 0.193 301.0);
Tailwind
colors: {
  custom: {
    50: '#9969c4',
    500: '#6828aa',
    950: '#000000',
  },
}
SCSS
$custom: #6828aa;
$custom-light: #9969c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6828aa",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 269.538,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44296,
    "c": 0.19283,
    "h": 301
  },
  "luminance": 0.07363
}

Semantic roles & 50–950 ramp

primary
#6828AA
secondary
#98C46A
accent
#E54395
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6828AA

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

Preview Lab → · Contrast checker → · Palette generator →

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