#6827A6#6827A6

#6827A6 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.9% C 0.190 H 302.2°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#6827A6
RGBrgb(104, 39, 166)
HSLhsl(271, 62%, 40%)
HSVhsv(271, 77%, 65%)
CMYKcmyk(37.3%, 76.5%, 0%, 34.9%)
CIE-LABlab(32.14, 52.19, -56.25)
CIE-LCHlch(32.14, 76.73, 312.85°)
OKLaboklab(43.86% 0.1012 -0.1605)
OKLCHoklch(43.86% 0.19 302.2)
XYZxyz(13.3157, 7.1472, 36.7470)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6827A6 #65A627
analogous
#2927A6 #6827A6 #A627A4
triadic
#6827A6 #A66827 #27A668
tetradic
#6827A6 #A62927 #65A627 #27A4A6
square
#6827A6 #A62927 #65A627 #27A4A6
split-complementary
#6827A6 #A4A627 #27A629
monochromatic
#2A1043 #491B74 #6827A6 #873AD1 #A56BDC

Accessibility & contrast

On white

8.64
#6827A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6827A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6827A6
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6827A6#FFFFFF#000000##FFFFFF
##6827A61.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#5B4865
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6827a6;
/* rgb */ color: rgb(104, 39, 166);
/* oklch */ color: oklch(43.9% 0.190 302.2);
Tailwind
colors: {
  custom: {
    50: '#9968c1',
    500: '#6827a6',
    950: '#000000',
  },
}
SCSS
$custom: #6827a6;
$custom-light: #9968c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6827a6",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 270.709,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43856,
    "c": 0.18974,
    "h": 302.2
  },
  "luminance": 0.07147
}

Semantic roles & 50–950 ramp

primary
#6827A6
secondary
#93C366
accent
#E54392
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6827A6

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

Preview Lab → · Contrast checker → · Palette generator →

#6827A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva