#6828B0#6828B0

#6828B0 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.199 H 299.4°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#6828B0
RGBrgb(104, 40, 176)
HSLhsl(268, 63%, 42%)
HSVhsv(268, 77%, 69%)
CMYKcmyk(40.9%, 77.3%, 0%, 31%)
CIE-LABlab(33.13, 54.20, -60.63)
CIE-LCHlch(33.13, 81.33, 311.79°)
OKLaboklab(44.81% 0.0978 -0.1734)
OKLCHoklch(44.81% 0.199 299.4)
XYZxyz(14.3022, 7.5951, 41.7784)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828B0 #70B028
analogous
#282CB0 #6828B0 #AC28B0
triadic
#6828B0 #B06828 #28B068
tetradic
#6828B0 #B0282C #70B028 #28B0AC
square
#6828B0 #B0282C #70B028 #28B0AC
split-complementary
#6828B0 #B0AC28 #2CB028
monochromatic
#2D114C #4B1D7E #6828B0 #8641D4 #A673DF

Accessibility & contrast

On white

8.34
#6828B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6828B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6828B0
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6828B0#FFFFFF#000000##FFFFFF
##6828B01.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6828b0;
/* rgb */ color: rgb(104, 40, 176);
/* oklch */ color: oklch(44.8% 0.199 299.4);
Tailwind
colors: {
  custom: {
    50: '#9a69c9',
    500: '#6828b0',
    950: '#000000',
  },
}
SCSS
$custom: #6828b0;
$custom-light: #9a69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6828b0",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 268.235,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44807,
    "c": 0.19906,
    "h": 299.4
  },
  "luminance": 0.07595
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6828B0

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

Preview Lab → · Contrast checker → · Palette generator →

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