#6842EB#6842EB

#6842EB is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.0% C 0.237 H 285.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#6842EB
RGBrgb(104, 66, 235)
HSLhsl(253, 81%, 59%)
HSVhsv(253, 72%, 92%)
CMYKcmyk(55.7%, 71.9%, 0%, 7.8%)
CIE-LABlab(42.52, 57.76, -79.48)
CIE-LCHlch(42.52, 98.25, 306.01°)
OKLaboklab(52.99% 0.0625 -0.2288)
OKLCHoklch(52.99% 0.237 285.3)
XYZxyz(22.6480, 12.8363, 79.8654)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842EB #C5EB42
analogous
#4271EB #6842EB #BD42EB
triadic
#6842EB #EB6842 #42EB68
tetradic
#6842EB #EB4271 #C5EB42 #42EBBD
square
#6842EB #EB4271 #C5EB42 #42EBBD
split-complementary
#6842EB #EBBD42 #71EB42
monochromatic
#3211A2 #4317D9 #6842EB #9479F1 #C0B1F7

Accessibility & contrast

On white

5.89
#6842EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#6842EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842EB
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842EB#FFFFFF#000000##FFFFFF
##6842EB1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F0
Deuteranopia (green-blind)
#005FE8
Tritanopia (blue-blind)
#287093
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6842eb;
/* rgb */ color: rgb(104, 66, 235);
/* oklch */ color: oklch(53.0% 0.237 285.3);
Tailwind
colors: {
  custom: {
    50: '#a07af3',
    500: '#6842eb',
    950: '#000000',
  },
}
SCSS
$custom: #6842eb;
$custom-light: #a07af3;
$custom-dark: #000000;
JSON
{
  "hex": "#6842eb",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 253.491,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5299,
    "c": 0.23718,
    "h": 285.3
  },
  "luminance": 0.12838
}

Semantic roles & 50–950 ramp

primary
#6842EB
secondary
#D7E6A3
accent
#F731CB
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6842EB

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

Preview Lab → · Contrast checker → · Palette generator →

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