#6942EB#6942EB

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

Color values

HEX#6942EB
RGBrgb(105, 66, 235)
HSLhsl(254, 81%, 59%)
HSVhsv(254, 72%, 92%)
CMYKcmyk(55.3%, 71.9%, 0%, 7.8%)
CIE-LABlab(42.61, 57.90, -79.33)
CIE-LCHlch(42.61, 98.21, 306.12°)
OKLaboklab(53.08% 0.0639 -0.2283)
OKLCHoklch(53.08% 0.237 285.6)
XYZxyz(22.7648, 12.8965, 79.8709)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942EB #C4EB42
analogous
#4270EB #6942EB #BE42EB
triadic
#6942EB #EB6942 #42EB69
tetradic
#6942EB #EB4270 #C4EB42 #42EBBE
square
#6942EB #EB4270 #C4EB42 #42EBBE
split-complementary
#6942EB #EBBE42 #70EB42
monochromatic
#3211A2 #4417D9 #6942EB #9579F1 #C1B1F7

Accessibility & contrast

On white

5.87
#6942EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#6942EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942EB
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942EB#FFFFFF#000000##FFFFFF
##6942EB1.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)
#0069F0
Deuteranopia (green-blind)
#005FE8
Tritanopia (blue-blind)
#2B7093
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6942eb;
/* rgb */ color: rgb(105, 66, 235);
/* oklch */ color: oklch(53.1% 0.237 285.6);
Tailwind
colors: {
  custom: {
    50: '#a07af3',
    500: '#6942eb',
    950: '#000000',
  },
}
SCSS
$custom: #6942eb;
$custom-light: #a07af3;
$custom-dark: #000000;
JSON
{
  "hex": "#6942eb",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 253.846,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53077,
    "c": 0.23709,
    "h": 285.6
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#6942EB
secondary
#D6E6A3
accent
#F731C9
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6942EB

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

Preview Lab → · Contrast checker → · Palette generator →

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