#6828A2#6828A2

#6828A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.184 H 303.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#6828A2
RGBrgb(104, 40, 162)
HSLhsl(271, 60%, 40%)
HSVhsv(271, 75%, 64%)
CMYKcmyk(35.8%, 75.3%, 0%, 36.5%)
CIE-LABlab(31.96, 50.79, -54.12)
CIE-LCHlch(31.96, 74.22, 313.18°)
OKLaboklab(43.63% 0.1013 -0.1542)
OKLCHoklch(43.63% 0.184 303.3)
XYZxyz(12.9878, 7.0693, 34.8557)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828A2 #62A228
analogous
#2B28A2 #6828A2 #A2289F
triadic
#6828A2 #A26828 #28A268
tetradic
#6828A2 #A22B28 #62A228 #289FA2
square
#6828A2 #A22B28 #62A228 #289FA2
split-complementary
#6828A2 #9FA228 #28A22B
monochromatic
#291040 #481C71 #6828A2 #8739CE #A56ADA

Accessibility & contrast

On white

8.70
#6828A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6828A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6828A2#FFFFFF#000000##FFFFFF
##6828A21.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#5C4763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6828a2;
/* rgb */ color: rgb(104, 40, 162);
/* oklch */ color: oklch(43.6% 0.184 303.3);
Tailwind
colors: {
  custom: {
    50: '#9969be',
    500: '#6828a2',
    950: '#000000',
  },
}
SCSS
$custom: #6828a2;
$custom-light: #9969be;
$custom-dark: #000000;
JSON
{
  "hex": "#6828a2",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 271.475,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43631,
    "c": 0.18449,
    "h": 303.3
  },
  "luminance": 0.07069
}

Semantic roles & 50–950 ramp

primary
#6828A2
secondary
#91C165
accent
#E44490
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6828A2

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

Preview Lab → · Contrast checker → · Palette generator →

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