#6827AB#6827AB

#6827AB is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.3% C 0.195 H 300.9°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#6827AB
RGBrgb(104, 39, 171)
HSLhsl(270, 63%, 41%)
HSVhsv(270, 77%, 67%)
CMYKcmyk(39.2%, 77.2%, 0%, 32.9%)
CIE-LABlab(32.56, 53.40, -58.57)
CIE-LCHlch(32.56, 79.26, 312.35°)
OKLaboklab(44.28% 0.1 -0.1673)
OKLCHoklch(44.28% 0.195 300.9)
XYZxyz(13.7833, 7.3343, 39.2097)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6827AB #6AAB27
analogous
#2728AB #6827AB #AA27AB
triadic
#6827AB #AB6827 #27AB68
tetradic
#6827AB #AB2728 #6AAB27 #27ABAA
square
#6827AB #AB2728 #6AAB27 #27ABAA
split-complementary
#6827AB #ABAA27 #28AB27
monochromatic
#2B1047 #4A1C79 #6827AB #863DD3 #A56EDE

Accessibility & contrast

On white

8.51
#6827AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6827AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6827AB
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6827AB#FFFFFF#000000##FFFFFF
##6827AB1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#594A68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6827ab;
/* rgb */ color: rgb(104, 39, 171);
/* oklch */ color: oklch(44.3% 0.195 300.9);
Tailwind
colors: {
  custom: {
    50: '#9969c5',
    500: '#6827ab',
    950: '#000000',
  },
}
SCSS
$custom: #6827ab;
$custom-light: #9969c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6827ab",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 269.545,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44278,
    "c": 0.1949,
    "h": 300.9
  },
  "luminance": 0.07334
}

Semantic roles & 50–950 ramp

primary
#6827AB
secondary
#98C569
accent
#E64295
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6827AB

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

Preview Lab → · Contrast checker → · Palette generator →

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