#6942E1#6942E1

#6942E1 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.226 H 287.0°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#6942E1
RGBrgb(105, 66, 225)
HSLhsl(255, 73%, 57%)
HSVhsv(255, 71%, 88%)
CMYKcmyk(53.3%, 70.7%, 0%, 11.8%)
CIE-LABlab(41.74, 55.10, -75.07)
CIE-LCHlch(41.74, 93.12, 306.28°)
OKLaboklab(52.2% 0.066 -0.2158)
OKLCHoklch(52.2% 0.226 287)
XYZxyz(21.3605, 12.3348, 72.4749)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942E1 #BAE142
analogous
#426BE1 #6942E1 #B942E1
triadic
#6942E1 #E16942 #42E169
tetradic
#6942E1 #E1426B #BAE142 #42E1B9
square
#6942E1 #E1426B #BAE142 #42E1B9
split-complementary
#6942E1 #E1B942 #6BE142
monochromatic
#351792 #481FC6 #6942E1 #9377E9 #BDACF2

Accessibility & contrast

On white

6.06
#6942E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#6942E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942E1
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942E1#FFFFFF#000000##FFFFFF
##6942E11.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#005EDE
Tritanopia (blue-blind)
#376C8D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6942e1;
/* rgb */ color: rgb(105, 66, 225);
/* oklch */ color: oklch(52.2% 0.226 287.0);
Tailwind
colors: {
  custom: {
    50: '#9f7aec',
    500: '#6942e1',
    950: '#000000',
  },
}
SCSS
$custom: #6942e1;
$custom-light: #9f7aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6942e1",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 254.717,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.522,
    "c": 0.22569,
    "h": 287
  },
  "luminance": 0.12336
}

Semantic roles & 50–950 ramp

primary
#6942E1
secondary
#D0E09F
accent
#EF38C2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6942E1

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

Preview Lab → · Contrast checker → · Palette generator →

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