#6942E6#6942E6

#6942E6 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.231 H 286.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#6942E6
RGBrgb(105, 66, 230)
HSLhsl(254, 77%, 58%)
HSVhsv(254, 71%, 90%)
CMYKcmyk(54.3%, 71.3%, 0%, 9.8%)
CIE-LABlab(42.17, 56.50, -77.21)
CIE-LCHlch(42.17, 95.67, 306.20°)
OKLaboklab(52.64% 0.065 -0.2221)
OKLCHoklch(52.64% 0.231 286.3)
XYZxyz(22.0526, 12.6116, 76.1198)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942E6 #BFE642
analogous
#426DE6 #6942E6 #BB42E6
triadic
#6942E6 #E66942 #42E669
tetradic
#6942E6 #E6426D #BFE642 #42E6BB
square
#6942E6 #E6426D #BFE642 #42E6BB
split-complementary
#6942E6 #E6BB42 #6DE642
monochromatic
#341499 #461BCF #6942E6 #9478ED #BFAEF4

Accessibility & contrast

On white

5.96
#6942E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#6942E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942E6
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942E6#FFFFFF#000000##FFFFFF
##6942E61.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EB
Deuteranopia (green-blind)
#005FE3
Tritanopia (blue-blind)
#326E90
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6942e6;
/* rgb */ color: rgb(105, 66, 230);
/* oklch */ color: oklch(52.6% 0.231 286.3);
Tailwind
colors: {
  custom: {
    50: '#a07aef',
    500: '#6942e6',
    950: '#000000',
  },
}
SCSS
$custom: #6942e6;
$custom-light: #a07aef;
$custom-dark: #000000;
JSON
{
  "hex": "#6942e6",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 230
  },
  "hsl": {
    "h": 254.268,
    "s": 76.636,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52636,
    "c": 0.23142,
    "h": 286.3
  },
  "luminance": 0.12613
}

Semantic roles & 50–950 ramp

primary
#6942E6
secondary
#D3E3A1
accent
#F335C6
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6942E6

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

Preview Lab → · Contrast checker → · Palette generator →

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