#6942E2#6942E2

#6942E2 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.227 H 286.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#6942E2
RGBrgb(105, 66, 226)
HSLhsl(255, 73%, 57%)
HSVhsv(255, 71%, 89%)
CMYKcmyk(53.5%, 70.8%, 0%, 11.4%)
CIE-LABlab(41.83, 55.38, -75.50)
CIE-LCHlch(41.83, 93.63, 306.26°)
OKLaboklab(52.29% 0.0658 -0.2171)
OKLCHoklch(52.29% 0.227 286.9)
XYZxyz(21.4973, 12.3895, 73.1954)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942E2 #BBE242
analogous
#426BE2 #6942E2 #B942E2
triadic
#6942E2 #E26942 #42E269
tetradic
#6942E2 #E2426B #BBE242 #42E2B9
square
#6942E2 #E2426B #BBE242 #42E2B9
split-complementary
#6942E2 #E2B942 #6BE242
monochromatic
#351793 #481FC8 #6942E2 #9377EA #BDACF2

Accessibility & contrast

On white

6.04
#6942E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#6942E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942E2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942E2#FFFFFF#000000##FFFFFF
##6942E21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#366D8E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6942e2;
/* rgb */ color: rgb(105, 66, 226);
/* oklch */ color: oklch(52.3% 0.227 286.9);
Tailwind
colors: {
  custom: {
    50: '#9f7aec',
    500: '#6942e2',
    950: '#000000',
  },
}
SCSS
$custom: #6942e2;
$custom-light: #9f7aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6942e2",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 254.625,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52287,
    "c": 0.22684,
    "h": 286.9
  },
  "luminance": 0.12391
}

Semantic roles & 50–950 ramp

primary
#6942E2
secondary
#D1E09F
accent
#F038C3
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6942E2

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

Preview Lab → · Contrast checker → · Palette generator →

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