#6818A1#6818A1

#6818A1 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.199 H 305.1°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#6818A1
RGBrgb(104, 24, 161)
HSLhsl(275, 74%, 36%)
HSVhsv(275, 85%, 63%)
CMYKcmyk(35.4%, 85.1%, 0%, 36.9%)
CIE-LABlab(29.84, 56.48, -56.98)
CIE-LCHlch(29.84, 80.23, 314.74°)
OKLaboklab(42.12% 0.1143 -0.1625)
OKLCHoklch(42.12% 0.199 305.1)
XYZxyz(12.4671, 6.1696, 34.2454)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6818A1 #51A118
analogous
#2318A1 #6818A1 #A11896
triadic
#6818A1 #A16818 #18A168
tetradic
#6818A1 #A12318 #51A118 #1896A1
square
#6818A1 #A12318 #51A118 #1896A1
split-complementary
#6818A1 #96A118 #18A123
monochromatic
#230836 #46106C #6818A1 #8A20D6 #A64FE5

Accessibility & contrast

On white

9.40
#6818A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6818A1
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6818A1#FFFFFF#000000##FFFFFF
##6818A11.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.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: #6818a1;
/* rgb */ color: rgb(104, 24, 161);
/* oklch */ color: oklch(42.1% 0.199 305.1);
Tailwind
colors: {
  custom: {
    50: '#9962be',
    500: '#6818a1',
    950: '#000000',
  },
}
SCSS
$custom: #6818a1;
$custom-light: #9962be;
$custom-dark: #000000;
JSON
{
  "hex": "#6818a1",
  "rgb": {
    "r": 104,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 275.036,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4212,
    "c": 0.19868,
    "h": 305.1
  },
  "luminance": 0.0617
}

Semantic roles & 50–950 ramp

primary
#6818A1
secondary
#80C74E
accent
#F13784
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6818A1

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

Preview Lab → · Contrast checker → · Palette generator →

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