#6821AC#6821AC

#6821AC is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.8% C 0.202 H 301.2°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#6821AC
RGBrgb(104, 33, 172)
HSLhsl(271, 68%, 40%)
HSVhsv(271, 81%, 67%)
CMYKcmyk(39.5%, 80.8%, 0%, 32.5%)
CIE-LABlab(31.83, 55.99, -60.36)
CIE-LCHlch(31.83, 82.33, 312.85°)
OKLaboklab(43.8% 0.1045 -0.1725)
OKLCHoklch(43.8% 0.202 301.2)
XYZxyz(13.6973, 7.0092, 39.6530)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6821AC #65AC21
analogous
#2221AC #6821AC #AC21AB
triadic
#6821AC #AC6821 #21AC68
tetradic
#6821AC #AC2221 #65AC21 #21ABAC
square
#6821AC #AC2221 #65AC21 #21ABAC
split-complementary
#6821AC #ABAC21 #21AC22
monochromatic
#2A0D45 #491779 #6821AC #8732D8 #A566E2

Accessibility & contrast

On white

8.74
#6821AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6821AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6821AC
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6821AC#FFFFFF#000000##FFFFFF
##6821AC1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#594867
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6821ac;
/* rgb */ color: rgb(104, 33, 172);
/* oklch */ color: oklch(43.8% 0.202 301.2);
Tailwind
colors: {
  custom: {
    50: '#9a66c6',
    500: '#6821ac',
    950: '#000000',
  },
}
SCSS
$custom: #6821ac;
$custom-light: #9a66c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6821ac",
  "rgb": {
    "r": 104,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 270.647,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43796,
    "c": 0.20171,
    "h": 301.2
  },
  "luminance": 0.07009
}

Semantic roles & 50–950 ramp

primary
#6821AC
secondary
#93C762
accent
#EB3D92
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6821AC

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

Preview Lab → · Contrast checker → · Palette generator →

#6821AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva