#6828AB#6828AB

#6828AB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.194 H 300.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#6828AB
RGBrgb(104, 40, 171)
HSLhsl(269, 62%, 41%)
HSVhsv(269, 77%, 67%)
CMYKcmyk(39.2%, 76.6%, 0%, 32.9%)
CIE-LABlab(32.70, 52.98, -58.33)
CIE-LCHlch(32.70, 78.80, 312.24°)
OKLaboklab(44.38% 0.0991 -0.1666)
OKLCHoklch(44.38% 0.194 300.8)
XYZxyz(13.8166, 7.4008, 39.2208)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828AB #6BAB28
analogous
#282AAB #6828AB #AA28AB
triadic
#6828AB #AB6828 #28AB68
tetradic
#6828AB #AB282A #6BAB28 #28ABAA
square
#6828AB #AB282A #6BAB28 #28ABAA
split-complementary
#6828AB #ABAA28 #2AAB28
monochromatic
#2C1148 #4A1C79 #6828AB #863ED2 #A570DE

Accessibility & contrast

On white

8.47
#6828AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6828AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6828AB
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6828AB#FFFFFF#000000##FFFFFF
##6828AB1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#594A68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6828ab;
/* rgb */ color: rgb(104, 40, 171);
/* oklch */ color: oklch(44.4% 0.194 300.8);
Tailwind
colors: {
  custom: {
    50: '#9969c5',
    500: '#6828ab',
    950: '#000000',
  },
}
SCSS
$custom: #6828ab;
$custom-light: #9969c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6828ab",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 269.313,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4438,
    "c": 0.19387,
    "h": 300.8
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#6828AB
secondary
#98C46A
accent
#E54396
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6828AB

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

Preview Lab → · Contrast checker → · Palette generator →

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