#6827A2#6827A2

#6827A2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.186 H 303.4°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#6827A2
RGBrgb(104, 39, 162)
HSLhsl(272, 61%, 39%)
HSVhsv(272, 76%, 64%)
CMYKcmyk(35.8%, 75.9%, 0%, 36.5%)
CIE-LABlab(31.81, 51.22, -54.36)
CIE-LCHlch(31.81, 74.69, 313.30°)
OKLaboklab(43.53% 0.1022 -0.1549)
OKLCHoklch(43.53% 0.186 303.4)
XYZxyz(12.9545, 7.0027, 34.8446)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6827A2 #61A227
analogous
#2A27A2 #6827A2 #A2279F
triadic
#6827A2 #A26827 #27A268
tetradic
#6827A2 #A22A27 #61A227 #279FA2
square
#6827A2 #A22A27 #61A227 #279FA2
split-complementary
#6827A2 #9FA227 #27A22A
monochromatic
#290F3F #481B71 #6827A2 #8737CF #A569DB

Accessibility & contrast

On white

8.75
#6827A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6827A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6827A2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6827A2#FFFFFF#000000##FFFFFF
##6827A21.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#5C4663
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6827a2;
/* rgb */ color: rgb(104, 39, 162);
/* oklch */ color: oklch(43.5% 0.186 303.4);
Tailwind
colors: {
  custom: {
    50: '#9968be',
    500: '#6827a2',
    950: '#000000',
  },
}
SCSS
$custom: #6827a2;
$custom-light: #9968be;
$custom-dark: #000000;
JSON
{
  "hex": "#6827a2",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 271.707,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43525,
    "c": 0.1856,
    "h": 303.4
  },
  "luminance": 0.07003
}

Semantic roles & 50–950 ramp

primary
#6827A2
secondary
#90C164
accent
#E4438F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6827A2

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

Preview Lab → · Contrast checker → · Palette generator →

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