#6840ED#6840ED

#6840ED is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.9% C 0.241 H 285.3°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#6840ED
RGBrgb(104, 64, 237)
HSLhsl(254, 83%, 59%)
HSVhsv(254, 73%, 93%)
CMYKcmyk(56.1%, 73%, 0%, 7.1%)
CIE-LABlab(42.34, 59.30, -80.89)
CIE-LCHlch(42.34, 100.30, 306.24°)
OKLaboklab(52.92% 0.0636 -0.2329)
OKLCHoklch(52.92% 0.241 285.3)
XYZxyz(22.8237, 12.7229, 81.3574)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840ED #C5ED40
analogous
#406FED #6840ED #BF40ED
triadic
#6840ED #ED6840 #40ED68
tetradic
#6840ED #ED406F #C5ED40 #40EDBF
square
#6840ED #ED406F #C5ED40 #40EDBF
split-complementary
#6840ED #EDBF40 #6FED40
monochromatic
#320FA3 #4315DB #6840ED #9478F2 #C0B0F8

Accessibility & contrast

On white

5.92
#6840ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#6840ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840ED
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840ED#FFFFFF#000000##FFFFFF
##6840ED1.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F2
Deuteranopia (green-blind)
#005FEA
Tritanopia (blue-blind)
#257093
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6840ed;
/* rgb */ color: rgb(104, 64, 237);
/* oklch */ color: oklch(52.9% 0.241 285.3);
Tailwind
colors: {
  custom: {
    50: '#a079f4',
    500: '#6840ed',
    950: '#000000',
  },
}
SCSS
$custom: #6840ed;
$custom-light: #a079f4;
$custom-dark: #000000;
JSON
{
  "hex": "#6840ed",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 237
  },
  "hsl": {
    "h": 253.873,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52922,
    "c": 0.24143,
    "h": 285.3
  },
  "luminance": 0.12724
}

Semantic roles & 50–950 ramp

primary
#6840ED
secondary
#D7E6A2
accent
#F92FCA
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6840ED

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

Preview Lab → · Contrast checker → · Palette generator →

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