#6841EA#6841EA

#6841EA is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.237 H 285.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#6841EA
RGBrgb(104, 65, 234)
HSLhsl(254, 80%, 59%)
HSVhsv(254, 72%, 92%)
CMYKcmyk(55.6%, 72.2%, 0%, 8.2%)
CIE-LABlab(42.25, 57.97, -79.35)
CIE-LCHlch(42.25, 98.27, 306.15°)
OKLaboklab(52.78% 0.0635 -0.2284)
OKLCHoklch(52.78% 0.237 285.5)
XYZxyz(22.4460, 12.6629, 79.0874)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841EA #C3EA41
analogous
#416EEA #6841EA #BC41EA
triadic
#6841EA #EA6841 #41EA68
tetradic
#6841EA #EA416E #C3EA41 #41EABC
square
#6841EA #EA416E #C3EA41 #41EABC
split-complementary
#6841EA #EABC41 #6EEA41
monochromatic
#32129F #4418D6 #6841EA #9478F0 #C0AFF6

Accessibility & contrast

On white

5.94
#6841EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#6841EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841EA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841EA#FFFFFF#000000##FFFFFF
##6841EA1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#005FE7
Tritanopia (blue-blind)
#296F92
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6841ea;
/* rgb */ color: rgb(104, 65, 234);
/* oklch */ color: oklch(52.8% 0.237 285.5);
Tailwind
colors: {
  custom: {
    50: '#a079f2',
    500: '#6841ea',
    950: '#000000',
  },
}
SCSS
$custom: #6841ea;
$custom-light: #a079f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6841ea",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 234
  },
  "hsl": {
    "h": 253.846,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52776,
    "c": 0.23706,
    "h": 285.5
  },
  "luminance": 0.12664
}

Semantic roles & 50–950 ramp

primary
#6841EA
secondary
#D5E5A2
accent
#F731C9
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6841EA

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

Preview Lab → · Contrast checker → · Palette generator →

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