#6817A1#6817A1

#6817A1 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 42.0% C 0.199 H 305.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#6817A1
RGBrgb(104, 23, 161)
HSLhsl(275, 75%, 36%)
HSVhsv(275, 86%, 63%)
CMYKcmyk(35.4%, 85.7%, 0%, 36.9%)
CIE-LABlab(29.74, 56.77, -57.15)
CIE-LCHlch(29.74, 80.55, 314.81°)
OKLaboklab(42.05% 0.1149 -0.163)
OKLCHoklch(42.05% 0.199 305.2)
XYZxyz(12.4469, 6.1291, 34.2386)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6817A1 #50A117
analogous
#2317A1 #6817A1 #A11795
triadic
#6817A1 #A16817 #17A168
tetradic
#6817A1 #A12317 #50A117 #1795A1
square
#6817A1 #A12317 #50A117 #1795A1
split-complementary
#6817A1 #95A117 #17A123
monochromatic
#230836 #450F6B #6817A1 #8B1FD7 #A64DE6

Accessibility & contrast

On white

9.43
#6817A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6817A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6817A1
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6817A1#FFFFFF#000000##FFFFFF
##6817A11.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A5
Deuteranopia (green-blind)
#00469E
Tritanopia (blue-blind)
#5D3F5F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6817a1;
/* rgb */ color: rgb(104, 23, 161);
/* oklch */ color: oklch(42.0% 0.199 305.2);
Tailwind
colors: {
  custom: {
    50: '#9961be',
    500: '#6817a1',
    950: '#000000',
  },
}
SCSS
$custom: #6817a1;
$custom-light: #9961be;
$custom-dark: #000000;
JSON
{
  "hex": "#6817a1",
  "rgb": {
    "r": 104,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 275.217,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4205,
    "c": 0.19944,
    "h": 305.2
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#6817A1
secondary
#7FC74C
accent
#F23684
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6817A1

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

Preview Lab → · Contrast checker → · Palette generator →

#6817A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva