#6840EA#6840EA

#6840EA is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.238 H 285.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#6840EA
RGBrgb(104, 64, 234)
HSLhsl(254, 80%, 58%)
HSVhsv(254, 73%, 92%)
CMYKcmyk(55.6%, 72.6%, 0%, 8.2%)
CIE-LABlab(42.08, 58.47, -79.64)
CIE-LCHlch(42.08, 98.79, 306.29°)
OKLaboklab(52.65% 0.0642 -0.2292)
OKLCHoklch(52.65% 0.238 285.7)
XYZxyz(22.3891, 12.5491, 79.0684)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840EA #C2EA40
analogous
#406DEA #6840EA #BD40EA
triadic
#6840EA #EA6840 #40EA68
tetradic
#6840EA #EA406D #C2EA40 #40EABD
square
#6840EA #EA406D #C2EA40 #40EABD
split-complementary
#6840EA #EABD40 #6DEA40
monochromatic
#33119E #4417D5 #6840EA #9477F0 #BFAEF6

Accessibility & contrast

On white

5.98
#6840EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#6840EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840EA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840EA#FFFFFF#000000##FFFFFF
##6840EA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#005EE7
Tritanopia (blue-blind)
#2A6F92
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6840ea;
/* rgb */ color: rgb(104, 64, 234);
/* oklch */ color: oklch(52.7% 0.238 285.7);
Tailwind
colors: {
  custom: {
    50: '#a079f2',
    500: '#6840ea',
    950: '#000000',
  },
}
SCSS
$custom: #6840ea;
$custom-light: #a079f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6840ea",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 234
  },
  "hsl": {
    "h": 254.118,
    "s": 80.189,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52652,
    "c": 0.23807,
    "h": 285.7
  },
  "luminance": 0.1255
}

Semantic roles & 50–950 ramp

primary
#6840EA
secondary
#D5E5A1
accent
#F731C8
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6840EA

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

Preview Lab → · Contrast checker → · Palette generator →

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