#6828AD#6828AD

#6828AD is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.196 H 300.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#6828AD
RGBrgb(104, 40, 173)
HSLhsl(269, 62%, 42%)
HSVhsv(269, 77%, 68%)
CMYKcmyk(39.9%, 76.9%, 0%, 32.2%)
CIE-LABlab(32.87, 53.47, -59.26)
CIE-LCHlch(32.87, 79.81, 312.06°)
OKLaboklab(44.55% 0.0986 -0.1693)
OKLCHoklch(44.55% 0.196 300.2)
XYZxyz(14.0087, 7.4776, 40.2323)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828AD #6DAD28
analogous
#282BAD #6828AD #AB28AD
triadic
#6828AD #AD6828 #28AD68
tetradic
#6828AD #AD282B #6DAD28 #28ADAB
square
#6828AD #AD282B #6DAD28 #28ADAB
split-complementary
#6828AD #ADAB28 #2BAD28
monochromatic
#2C114A #4A1D7B #6828AD #863FD3 #A671DE

Accessibility & contrast

On white

8.41
#6828AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6828AD#FFFFFF#000000##FFFFFF
##6828AD1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB1
Deuteranopia (green-blind)
#004CAA
Tritanopia (blue-blind)
#584B69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6828ad;
/* rgb */ color: rgb(104, 40, 173);
/* oklch */ color: oklch(44.5% 0.196 300.2);
Tailwind
colors: {
  custom: {
    50: '#9a69c6',
    500: '#6828ad',
    950: '#000000',
  },
}
SCSS
$custom: #6828ad;
$custom-light: #9a69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6828ad",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 268.872,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4455,
    "c": 0.19595,
    "h": 300.2
  },
  "luminance": 0.07478
}

Semantic roles & 50–950 ramp

primary
#6828AD
secondary
#9AC56C
accent
#E64297
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6828AD

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

Preview Lab → · Contrast checker → · Palette generator →

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