#6828AC#6828AC

#6828AC is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.5% C 0.195 H 300.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#6828AC
RGBrgb(104, 40, 172)
HSLhsl(269, 62%, 42%)
HSVhsv(269, 77%, 67%)
CMYKcmyk(39.5%, 76.7%, 0%, 32.5%)
CIE-LABlab(32.79, 53.22, -58.80)
CIE-LCHlch(32.79, 79.31, 312.15°)
OKLaboklab(44.47% 0.0989 -0.168)
OKLCHoklch(44.47% 0.195 300.5)
XYZxyz(13.9123, 7.4391, 39.7246)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828AC #6CAC28
analogous
#282AAC #6828AC #AA28AC
triadic
#6828AC #AC6828 #28AC68
tetradic
#6828AC #AC282A #6CAC28 #28ACAA
square
#6828AC #AC282A #6CAC28 #28ACAA
split-complementary
#6828AC #ACAA28 #2AAC28
monochromatic
#2C1149 #4A1C7A #6828AC #863FD2 #A671DE

Accessibility & contrast

On white

8.44
#6828AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6828AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6828AC#FFFFFF#000000##FFFFFF
##6828AC1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6828ac;
/* rgb */ color: rgb(104, 40, 172);
/* oklch */ color: oklch(44.5% 0.195 300.5);
Tailwind
colors: {
  custom: {
    50: '#9a69c6',
    500: '#6828ac',
    950: '#000000',
  },
}
SCSS
$custom: #6828ac;
$custom-light: #9a69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6828ac",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 269.091,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44465,
    "c": 0.19491,
    "h": 300.5
  },
  "luminance": 0.07439
}

Semantic roles & 50–950 ramp

primary
#6828AC
secondary
#99C56B
accent
#E54296
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6828AC

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

Preview Lab → · Contrast checker → · Palette generator →

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