#6940ED#6940ED

#6940ED is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.0% C 0.241 H 285.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#6940ED
RGBrgb(105, 64, 237)
HSLhsl(254, 83%, 59%)
HSVhsv(254, 73%, 93%)
CMYKcmyk(55.7%, 73%, 0%, 7.1%)
CIE-LABlab(42.43, 59.44, -80.74)
CIE-LCHlch(42.43, 100.26, 306.36°)
OKLaboklab(53.01% 0.0649 -0.2324)
OKLCHoklch(53.01% 0.241 285.6)
XYZxyz(22.9405, 12.7831, 81.3629)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940ED #C4ED40
analogous
#406EED #6940ED #C040ED
triadic
#6940ED #ED6940 #40ED69
tetradic
#6940ED #ED406E #C4ED40 #40EDC0
square
#6940ED #ED406E #C4ED40 #40EDC0
split-complementary
#6940ED #EDC040 #6EED40
monochromatic
#320FA3 #4415DB #6940ED #9578F2 #C1B0F8

Accessibility & contrast

On white

5.90
#6940ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#6940ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940ED
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940ED#FFFFFF#000000##FFFFFF
##6940ED1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F2
Deuteranopia (green-blind)
#005FEA
Tritanopia (blue-blind)
#297093
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6940ed;
/* rgb */ color: rgb(105, 64, 237);
/* oklch */ color: oklch(53.0% 0.241 285.6);
Tailwind
colors: {
  custom: {
    50: '#a179f4',
    500: '#6940ed',
    950: '#000000',
  },
}
SCSS
$custom: #6940ed;
$custom-light: #a179f4;
$custom-dark: #000000;
JSON
{
  "hex": "#6940ed",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 237
  },
  "hsl": {
    "h": 254.22,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53009,
    "c": 0.24134,
    "h": 285.6
  },
  "luminance": 0.12784
}

Semantic roles & 50–950 ramp

primary
#6940ED
secondary
#D6E6A2
accent
#F92FC9
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6940ED

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

Preview Lab → · Contrast checker → · Palette generator →

#6940ED Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva