#6840AF#6840AF

#6840AF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.169 H 296.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#6840AF
RGBrgb(104, 64, 175)
HSLhsl(262, 46%, 47%)
HSVhsv(262, 63%, 69%)
CMYKcmyk(40.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(37.31, 42.09, -53.24)
CIE-LCHlch(37.31, 67.86, 308.33°)
OKLaboklab(47.77% 0.0739 -0.1517)
OKLCHoklch(47.77% 0.169 296)
XYZxyz(15.2782, 9.7047, 41.6174)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840AF #87AF40
analogous
#404FAF #6840AF #A040AF
triadic
#6840AF #AF6840 #40AF68
tetradic
#6840AF #AF404F #87AF40 #40AFA0
square
#6840AF #AF404F #87AF40 #40AFA0
split-complementary
#6840AF #AFA040 #4FAF40
monochromatic
#331F55 #4D3082 #6840AF #8865C7 #AB92D7

Accessibility & contrast

On white

7.14
#6840AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#6840AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6840AF
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840AF#FFFFFF#000000##FFFFFF
##6840AF1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#565971
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6840af;
/* rgb */ color: rgb(104, 64, 175);
/* oklch */ color: oklch(47.8% 0.169 296.0);
Tailwind
colors: {
  custom: {
    50: '#9877c8',
    500: '#6840af',
    950: '#000000',
  },
}
SCSS
$custom: #6840af;
$custom-light: #9877c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6840af",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 261.622,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47765,
    "c": 0.16875,
    "h": 296
  },
  "luminance": 0.09705
}

Semantic roles & 50–950 ramp

primary
#6840AF
secondary
#AEC388
accent
#D652A6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6840AF

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

Preview Lab → · Contrast checker → · Palette generator →

#6840AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva