#6942EA#6942EA

#6942EA is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.0% C 0.236 H 285.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#6942EA
RGBrgb(105, 66, 234)
HSLhsl(254, 80%, 59%)
HSVhsv(254, 72%, 92%)
CMYKcmyk(55.1%, 71.8%, 0%, 8.2%)
CIE-LABlab(42.52, 57.62, -78.90)
CIE-LCHlch(42.52, 97.70, 306.14°)
OKLaboklab(52.99% 0.0641 -0.2271)
OKLCHoklch(52.99% 0.236 285.8)
XYZxyz(22.6207, 12.8389, 79.1121)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942EA #C3EA42
analogous
#426FEA #6942EA #BD42EA
triadic
#6942EA #EA6942 #42EA69
tetradic
#6942EA #EA426F #C3EA42 #42EABD
square
#6942EA #EA426F #C3EA42 #42EABD
split-complementary
#6942EA #EABD42 #6FEA42
monochromatic
#3312A0 #4418D7 #6942EA #9579F0 #C0B0F6

Accessibility & contrast

On white

5.89
#6942EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#6942EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942EA
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942EA#FFFFFF#000000##FFFFFF
##6942EA1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EF
Deuteranopia (green-blind)
#005FE7
Tritanopia (blue-blind)
#2D7092
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6942ea;
/* rgb */ color: rgb(105, 66, 234);
/* oklch */ color: oklch(53.0% 0.236 285.8);
Tailwind
colors: {
  custom: {
    50: '#a07af2',
    500: '#6942ea',
    950: '#000000',
  },
}
SCSS
$custom: #6942ea;
$custom-light: #a07af2;
$custom-dark: #000000;
JSON
{
  "hex": "#6942ea",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 253.929,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52988,
    "c": 0.23596,
    "h": 285.8
  },
  "luminance": 0.1284
}

Semantic roles & 50–950 ramp

primary
#6942EA
secondary
#D6E5A3
accent
#F631C9
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6942EA

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

Preview Lab → · Contrast checker → · Palette generator →

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