#6828B3#6828B3

#6828B3 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.202 H 298.7°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#6828B3
RGBrgb(104, 40, 179)
HSLhsl(268, 63%, 43%)
HSVhsv(268, 78%, 70%)
CMYKcmyk(41.9%, 77.7%, 0%, 29.8%)
CIE-LABlab(33.38, 54.94, -62.00)
CIE-LCHlch(33.38, 82.84, 311.54°)
OKLaboklab(45.07% 0.097 -0.1774)
OKLCHoklch(45.07% 0.202 298.7)
XYZxyz(14.6023, 7.7151, 43.3589)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6828B3 #73B328
analogous
#282DB3 #6828B3 #AD28B3
triadic
#6828B3 #B36828 #28B368
tetradic
#6828B3 #B3282D #73B328 #28B3AD
square
#6828B3 #B3282D #73B328 #28B3AD
split-complementary
#6828B3 #B3AD28 #2DB328
monochromatic
#2E124F #4B1D81 #6828B3 #8643D5 #A675E0

Accessibility & contrast

On white

8.26
#6828B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6828B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6828B3
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6828B3#FFFFFF#000000##FFFFFF
##6828B31.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#554E6D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6828b3;
/* rgb */ color: rgb(104, 40, 179);
/* oklch */ color: oklch(45.1% 0.202 298.7);
Tailwind
colors: {
  custom: {
    50: '#9a69cb',
    500: '#6828b3',
    950: '#000000',
  },
}
SCSS
$custom: #6828b3;
$custom-light: #9a69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6828b3",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 267.626,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45066,
    "c": 0.20217,
    "h": 298.7
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6828B3

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

Preview Lab → · Contrast checker → · Palette generator →

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