#6828B2#6828B2

#6828B2 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 45.0% C 0.201 H 298.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#6828B2
RGBrgb(104, 40, 178)
HSLhsl(268, 63%, 43%)
HSVhsv(268, 78%, 70%)
CMYKcmyk(41.6%, 77.5%, 0%, 30.2%)
CIE-LABlab(33.30, 54.69, -61.55)
CIE-LCHlch(33.30, 82.33, 311.63°)
OKLaboklab(44.98% 0.0973 -0.176)
OKLCHoklch(44.98% 0.201 298.9)
XYZxyz(14.5015, 7.6748, 42.8282)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828B2 #72B228
analogous
#282DB2 #6828B2 #AD28B2
triadic
#6828B2 #B26828 #28B268
tetradic
#6828B2 #B2282D #72B228 #28B2AD
square
#6828B2 #B2282D #72B228 #28B2AD
split-complementary
#6828B2 #B2AD28 #2DB228
monochromatic
#2E124E #4B1D80 #6828B2 #8643D5 #A675E0

Accessibility & contrast

On white

8.28
#6828B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6828B2
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6828B2#FFFFFF#000000##FFFFFF
##6828B21.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6828b2;
/* rgb */ color: rgb(104, 40, 178);
/* oklch */ color: oklch(45.0% 0.201 298.9);
Tailwind
colors: {
  custom: {
    50: '#9a69ca',
    500: '#6828b2',
    950: '#000000',
  },
}
SCSS
$custom: #6828b2;
$custom-light: #9a69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6828b2",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 267.826,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4498,
    "c": 0.20114,
    "h": 298.9
  },
  "luminance": 0.07675
}

Semantic roles & 50–950 ramp

primary
#6828B2
secondary
#9EC76F
accent
#E6419A
background
#FAF6FC
surface
#F3EBF9
border
#CDC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6828B2

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

Preview Lab → · Contrast checker → · Palette generator →

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