#6828B1#6828B1

#6828B1 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.9% C 0.200 H 299.2°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#6828B1
RGBrgb(104, 40, 177)
HSLhsl(268, 63%, 43%)
HSVhsv(268, 77%, 69%)
CMYKcmyk(41.2%, 77.4%, 0%, 30.6%)
CIE-LABlab(33.21, 54.44, -61.09)
CIE-LCHlch(33.21, 81.83, 311.71°)
OKLaboklab(44.89% 0.0976 -0.1747)
OKLCHoklch(44.89% 0.2 299.2)
XYZxyz(14.4015, 7.6348, 42.3014)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828B1 #71B128
analogous
#282DB1 #6828B1 #AC28B1
triadic
#6828B1 #B16828 #28B168
tetradic
#6828B1 #B1282D #71B128 #28B1AC
square
#6828B1 #B1282D #71B128 #28B1AC
split-complementary
#6828B1 #B1AC28 #2DB128
monochromatic
#2D114D #4B1D7F #6828B1 #8642D4 #A674E0

Accessibility & contrast

On white

8.31
#6828B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6828B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6828B1
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6828B1#FFFFFF#000000##FFFFFF
##6828B11.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#564D6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6828b1;
/* rgb */ color: rgb(104, 40, 177);
/* oklch */ color: oklch(44.9% 0.200 299.2);
Tailwind
colors: {
  custom: {
    50: '#9a69c9',
    500: '#6828b1',
    950: '#000000',
  },
}
SCSS
$custom: #6828b1;
$custom-light: #9a69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6828b1",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 268.029,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44893,
    "c": 0.2001,
    "h": 299.2
  },
  "luminance": 0.07635
}

Semantic roles & 50–950 ramp

primary
#6828B1
secondary
#9DC76E
accent
#E64299
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6828B1

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

Preview Lab → · Contrast checker → · Palette generator →

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