#6828A5#6828A5

#6828A5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.188 H 302.4°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#6828A5
RGBrgb(104, 40, 165)
HSLhsl(271, 61%, 40%)
HSVhsv(271, 76%, 65%)
CMYKcmyk(37%, 75.8%, 0%, 35.3%)
CIE-LABlab(32.21, 51.52, -55.53)
CIE-LCHlch(32.21, 75.75, 312.85°)
OKLaboklab(43.88% 0.1006 -0.1584)
OKLCHoklch(43.88% 0.188 302.4)
XYZxyz(13.2576, 7.1772, 36.2769)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828A5 #65A528
analogous
#2928A5 #6828A5 #A528A4
triadic
#6828A5 #A56828 #28A568
tetradic
#6828A5 #A52928 #65A528 #28A4A5
square
#6828A5 #A52928 #65A528 #28A4A5
split-complementary
#6828A5 #A4A528 #28A529
monochromatic
#2A1042 #491C74 #6828A5 #873BCF #A56CDB

Accessibility & contrast

On white

8.62
#6828A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6828A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6828A5#FFFFFF#000000##FFFFFF
##6828A51.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#5B4865
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6828a5;
/* rgb */ color: rgb(104, 40, 165);
/* oklch */ color: oklch(43.9% 0.188 302.4);
Tailwind
colors: {
  custom: {
    50: '#9969c1',
    500: '#6828a5',
    950: '#000000',
  },
}
SCSS
$custom: #6828a5;
$custom-light: #9969c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6828a5",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 270.72,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43878,
    "c": 0.18761,
    "h": 302.4
  },
  "luminance": 0.07177
}

Semantic roles & 50–950 ramp

primary
#6828A5
secondary
#93C267
accent
#E44492
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6828A5

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

Preview Lab → · Contrast checker → · Palette generator →

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