#6842EA#6842EA

#6842EA is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.236 H 285.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#6842EA
RGBrgb(104, 66, 234)
HSLhsl(254, 80%, 59%)
HSVhsv(254, 72%, 92%)
CMYKcmyk(55.6%, 71.8%, 0%, 8.2%)
CIE-LABlab(42.43, 57.48, -79.06)
CIE-LCHlch(42.43, 97.74, 306.02°)
OKLaboklab(52.9% 0.0628 -0.2276)
OKLCHoklch(52.9% 0.236 285.4)
XYZxyz(22.5039, 12.7787, 79.1067)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842EA #C4EA42
analogous
#4270EA #6842EA #BC42EA
triadic
#6842EA #EA6842 #42EA68
tetradic
#6842EA #EA4270 #C4EA42 #42EABC
square
#6842EA #EA4270 #C4EA42 #42EABC
split-complementary
#6842EA #EABC42 #70EA42
monochromatic
#3212A0 #4318D7 #6842EA #9479F0 #C0B0F6

Accessibility & contrast

On white

5.91
#6842EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#6842EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842EA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842EA#FFFFFF#000000##FFFFFF
##6842EA1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EF
Deuteranopia (green-blind)
#005FE7
Tritanopia (blue-blind)
#297092
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6842ea;
/* rgb */ color: rgb(104, 66, 234);
/* oklch */ color: oklch(52.9% 0.236 285.4);
Tailwind
colors: {
  custom: {
    50: '#a07af2',
    500: '#6842ea',
    950: '#000000',
  },
}
SCSS
$custom: #6842ea;
$custom-light: #a07af2;
$custom-dark: #000000;
JSON
{
  "hex": "#6842ea",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 253.571,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52901,
    "c": 0.23605,
    "h": 285.4
  },
  "luminance": 0.1278
}

Semantic roles & 50–950 ramp

primary
#6842EA
secondary
#D6E5A3
accent
#F631CA
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6842EA

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

Preview Lab → · Contrast checker → · Palette generator →

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