#6942EE#6942EE

#6942EE is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.240 H 285.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#6942EE
RGBrgb(105, 66, 238)
HSLhsl(254, 83%, 60%)
HSVhsv(254, 72%, 93%)
CMYKcmyk(55.9%, 72.3%, 0%, 6.7%)
CIE-LABlab(42.87, 58.73, -80.59)
CIE-LCHlch(42.87, 99.72, 306.08°)
OKLaboklab(53.34% 0.0633 -0.232)
OKLCHoklch(53.34% 0.24 285.3)
XYZxyz(23.2019, 13.0714, 82.1728)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942EE #C7EE42
analogous
#4271EE #6942EE #BF42EE
triadic
#6942EE #EE6942 #42EE69
tetradic
#6942EE #EE4271 #C7EE42 #42EEBF
square
#6942EE #EE4271 #C7EE42 #42EEBF
split-complementary
#6942EE #EEBF42 #71EE42
monochromatic
#310FA7 #4214DF #6942EE #967AF3 #C2B2F8

Accessibility & contrast

On white

5.81
#6942EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#6942EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942EE
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942EE#FFFFFF#000000##FFFFFF
##6942EE1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF3
Deuteranopia (green-blind)
#0060EB
Tritanopia (blue-blind)
#277194
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6942ee;
/* rgb */ color: rgb(105, 66, 238);
/* oklch */ color: oklch(53.3% 0.240 285.3);
Tailwind
colors: {
  custom: {
    50: '#a17af5',
    500: '#6942ee',
    950: '#000000',
  },
}
SCSS
$custom: #6942ee;
$custom-light: #a17af5;
$custom-dark: #000000;
JSON
{
  "hex": "#6942ee",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 238
  },
  "hsl": {
    "h": 253.605,
    "s": 83.495,
    "l": 59.608
  },
  "oklch": {
    "l": 0.53343,
    "c": 0.24048,
    "h": 285.3
  },
  "luminance": 0.13073
}

Semantic roles & 50–950 ramp

primary
#6942EE
secondary
#D8E7A5
accent
#FA2ECC
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6942EE

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

Preview Lab → · Contrast checker → · Palette generator →

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