#6827A5#6827A5

#6827A5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.189 H 302.5°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#6827A5
RGBrgb(104, 39, 165)
HSLhsl(271, 62%, 40%)
HSVhsv(271, 76%, 65%)
CMYKcmyk(37%, 76.4%, 0%, 35.3%)
CIE-LABlab(32.06, 51.94, -55.78)
CIE-LCHlch(32.06, 76.22, 312.96°)
OKLaboklab(43.77% 0.1015 -0.1591)
OKLCHoklch(43.77% 0.189 302.5)
XYZxyz(13.2244, 7.1107, 36.2658)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6827A5 #64A527
analogous
#2927A5 #6827A5 #A527A3
triadic
#6827A5 #A56827 #27A568
tetradic
#6827A5 #A52927 #64A527 #27A3A5
square
#6827A5 #A52927 #64A527 #27A3A5
split-complementary
#6827A5 #A3A527 #27A529
monochromatic
#2A1042 #491B74 #6827A5 #8739D0 #A56ADC

Accessibility & contrast

On white

8.67
#6827A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6827A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6827A5
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6827A5#FFFFFF#000000##FFFFFF
##6827A51.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#5B4765
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6827a5;
/* rgb */ color: rgb(104, 39, 165);
/* oklch */ color: oklch(43.8% 0.189 302.5);
Tailwind
colors: {
  custom: {
    50: '#9968c1',
    500: '#6827a5',
    950: '#000000',
  },
}
SCSS
$custom: #6827a5;
$custom-light: #9968c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6827a5",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 270.952,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.43773,
    "c": 0.1887,
    "h": 302.5
  },
  "luminance": 0.07111
}

Semantic roles & 50–950 ramp

primary
#6827A5
secondary
#92C266
accent
#E54391
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6827A5

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

Preview Lab → · Contrast checker → · Palette generator →

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