#6828A8#6828A8

#6828A8 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.191 H 301.6°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#6828A8
RGBrgb(104, 40, 168)
HSLhsl(270, 62%, 41%)
HSVhsv(270, 76%, 66%)
CMYKcmyk(38.1%, 76.2%, 0%, 34.1%)
CIE-LABlab(32.45, 52.25, -56.94)
CIE-LCHlch(32.45, 77.28, 312.54°)
OKLaboklab(44.13% 0.0999 -0.1625)
OKLCHoklch(44.13% 0.191 301.6)
XYZxyz(13.5339, 7.2877, 37.7318)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828A8 #68A828
analogous
#2828A8 #6828A8 #A828A8
triadic
#6828A8 #A86828 #28A868
tetradic
#6828A8 #A82828 #68A828 #28A8A8
square
#6828A8 #A82828 #68A828 #28A8A8
split-complementary
#6828A8 #A8A828 #28A828
monochromatic
#2B1045 #491C77 #6828A8 #873DD1 #A56EDC

Accessibility & contrast

On white

8.54
#6828A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#6828A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6828A8
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6828A8#FFFFFF#000000##FFFFFF
##6828A81.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#5A4967
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6828a8;
/* rgb */ color: rgb(104, 40, 168);
/* oklch */ color: oklch(44.1% 0.191 301.6);
Tailwind
colors: {
  custom: {
    50: '#9969c3',
    500: '#6828a8',
    950: '#000000',
  },
}
SCSS
$custom: #6828a8;
$custom-light: #9969c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6828a8",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 270,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44128,
    "c": 0.19074,
    "h": 301.6
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#6828A8
secondary
#96C369
accent
#E54394
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6828A8

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

Preview Lab → · Contrast checker → · Palette generator →

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