#6828A3#6828A3

#6828A3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.186 H 303.0°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#6828A3
RGBrgb(104, 40, 163)
HSLhsl(271, 61%, 40%)
HSVhsv(271, 75%, 64%)
CMYKcmyk(36.2%, 75.5%, 0%, 36.1%)
CIE-LABlab(32.04, 51.03, -54.59)
CIE-LCHlch(32.04, 74.73, 313.07°)
OKLaboklab(43.71% 0.101 -0.1556)
OKLCHoklch(43.71% 0.186 303)
XYZxyz(13.0770, 7.1050, 35.3257)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828A3 #63A328
analogous
#2B28A3 #6828A3 #A328A0
triadic
#6828A3 #A36828 #28A368
tetradic
#6828A3 #A32B28 #63A328 #28A0A3
square
#6828A3 #A32B28 #63A328 #28A0A3
split-complementary
#6828A3 #A0A328 #28A32B
monochromatic
#291041 #491C72 #6828A3 #873ACF #A56BDB

Accessibility & contrast

On white

8.67
#6828A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6828A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6828A3#FFFFFF#000000##FFFFFF
##6828A31.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#5C4764
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6828a3;
/* rgb */ color: rgb(104, 40, 163);
/* oklch */ color: oklch(43.7% 0.186 303.0);
Tailwind
colors: {
  custom: {
    50: '#9969bf',
    500: '#6828a3',
    950: '#000000',
  },
}
SCSS
$custom: #6828a3;
$custom-light: #9969bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6828a3",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 271.22,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43713,
    "c": 0.18553,
    "h": 303
  },
  "luminance": 0.07105
}

Semantic roles & 50–950 ramp

primary
#6828A3
secondary
#92C166
accent
#E44491
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6828A3

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

Preview Lab → · Contrast checker → · Palette generator →

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