#6842EC#6842EC

#6842EC is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.1% C 0.238 H 285.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#6842EC
RGBrgb(104, 66, 236)
HSLhsl(253, 82%, 59%)
HSVhsv(253, 72%, 93%)
CMYKcmyk(55.9%, 72%, 0%, 7.5%)
CIE-LABlab(42.60, 58.04, -79.90)
CIE-LCHlch(42.60, 98.76, 305.99°)
OKLaboklab(53.08% 0.0623 -0.23)
OKLCHoklch(53.08% 0.238 285.2)
XYZxyz(22.7929, 12.8943, 80.6284)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842EC #C6EC42
analogous
#4271EC #6842EC #BD42EC
triadic
#6842EC #EC6842 #42EC68
tetradic
#6842EC #EC4271 #C6EC42 #42ECBD
square
#6842EC #EC4271 #C6EC42 #42ECBD
split-complementary
#6842EC #ECBD42 #71EC42
monochromatic
#3110A3 #4216DB #6842EC #947AF2 #C1B1F7

Accessibility & contrast

On white

5.87
#6842EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#6842EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842EC
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842EC#FFFFFF#000000##FFFFFF
##6842EC1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F1
Deuteranopia (green-blind)
#005FE9
Tritanopia (blue-blind)
#267193
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6842ec;
/* rgb */ color: rgb(104, 66, 236);
/* oklch */ color: oklch(53.1% 0.238 285.2);
Tailwind
colors: {
  custom: {
    50: '#a07af3',
    500: '#6842ec',
    950: '#000000',
  },
}
SCSS
$custom: #6842ec;
$custom-light: #a07af3;
$custom-dark: #000000;
JSON
{
  "hex": "#6842ec",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 236
  },
  "hsl": {
    "h": 253.412,
    "s": 81.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53079,
    "c": 0.23832,
    "h": 285.2
  },
  "luminance": 0.12896
}

Semantic roles & 50–950 ramp

primary
#6842EC
secondary
#D7E6A4
accent
#F830CB
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6842EC

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

Preview Lab → · Contrast checker → · Palette generator →

#6842EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva