#6942E7#6942E7

#6942E7 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.233 H 286.2°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#6942E7
RGBrgb(105, 66, 231)
HSLhsl(254, 77%, 58%)
HSVhsv(254, 71%, 91%)
CMYKcmyk(54.5%, 71.4%, 0%, 9.4%)
CIE-LABlab(42.26, 56.78, -77.63)
CIE-LCHlch(42.26, 96.18, 306.18°)
OKLaboklab(52.72% 0.0648 -0.2233)
OKLCHoklch(52.72% 0.233 286.2)
XYZxyz(22.1934, 12.6680, 76.8615)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942E7 #C0E742
analogous
#426DE7 #6942E7 #BC42E7
triadic
#6942E7 #E76942 #42E769
tetradic
#6942E7 #E7426D #C0E742 #42E7BC
square
#6942E7 #E7426D #C0E742 #42E7BC
split-complementary
#6942E7 #E7BC42 #6DE742
monochromatic
#34149B #461BD1 #6942E7 #9478EE #BFAFF5

Accessibility & contrast

On white

5.94
#6942E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#6942E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942E7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942E7#FFFFFF#000000##FFFFFF
##6942E71.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)
#0068EC
Deuteranopia (green-blind)
#005FE4
Tritanopia (blue-blind)
#316F91
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6942e7;
/* rgb */ color: rgb(105, 66, 231);
/* oklch */ color: oklch(52.7% 0.233 286.2);
Tailwind
colors: {
  custom: {
    50: '#a07af0',
    500: '#6942e7',
    950: '#000000',
  },
}
SCSS
$custom: #6942e7;
$custom-light: #a07af0;
$custom-dark: #000000;
JSON
{
  "hex": "#6942e7",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 254.182,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52724,
    "c": 0.23255,
    "h": 286.2
  },
  "luminance": 0.12669
}

Semantic roles & 50–950 ramp

primary
#6942E7
secondary
#D4E3A2
accent
#F434C7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6942E7

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

Preview Lab → · Contrast checker → · Palette generator →

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