#6828AF#6828AF

#6828AF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.198 H 299.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#6828AF
RGBrgb(104, 40, 175)
HSLhsl(268, 63%, 42%)
HSVhsv(268, 77%, 69%)
CMYKcmyk(40.6%, 77.1%, 0%, 31.4%)
CIE-LABlab(33.04, 53.95, -60.18)
CIE-LCHlch(33.04, 80.82, 311.88°)
OKLaboklab(44.72% 0.0981 -0.172)
OKLCHoklch(44.72% 0.198 299.7)
XYZxyz(14.2036, 7.5556, 41.2592)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828AF #6FAF28
analogous
#282CAF #6828AF #AB28AF
triadic
#6828AF #AF6828 #28AF68
tetradic
#6828AF #AF282C #6FAF28 #28AFAB
square
#6828AF #AF282C #6FAF28 #28AFAB
split-complementary
#6828AF #AFAB28 #2CAF28
monochromatic
#2D114B #4A1D7D #6828AF #8641D4 #A673DF

Accessibility & contrast

On white

8.36
#6828AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#6828AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6828AF
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6828AF#FFFFFF#000000##FFFFFF
##6828AF1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#574C6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6828af;
/* rgb */ color: rgb(104, 40, 175);
/* oklch */ color: oklch(44.7% 0.198 299.7);
Tailwind
colors: {
  custom: {
    50: '#9a69c8',
    500: '#6828af',
    950: '#000000',
  },
}
SCSS
$custom: #6828af;
$custom-light: #9a69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6828af",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 268.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44721,
    "c": 0.19803,
    "h": 299.7
  },
  "luminance": 0.07556
}

Semantic roles & 50–950 ramp

primary
#6828AF
secondary
#9CC66D
accent
#E64298
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6828AF

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

Preview Lab → · Contrast checker → · Palette generator →

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