#6940A2#6940A2

#6940A2 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 46.9% C 0.153 H 299.8°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#6940A2
RGBrgb(105, 64, 162)
HSLhsl(265, 43%, 44%)
HSVhsv(265, 60%, 64%)
CMYKcmyk(35.2%, 60.5%, 0%, 36.5%)
CIE-LABlab(36.52, 38.82, -46.75)
CIE-LCHlch(36.52, 60.76, 309.71°)
OKLaboklab(46.93% 0.0759 -0.1326)
OKLCHoklch(46.93% 0.153 299.8)
XYZxyz(14.1791, 9.2786, 35.2193)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940A2 #79A240
analogous
#4048A2 #6940A2 #9A40A2
triadic
#6940A2 #A26940 #40A269
tetradic
#6940A2 #A24048 #79A240 #40A29A
square
#6940A2 #A24048 #79A240 #40A29A
split-complementary
#6940A2 #A29A40 #48A240
monochromatic
#301D4A #4D2F76 #6940A2 #885FC0 #A88BD1

Accessibility & contrast

On white

7.35
#6940A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6940A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6940A2
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940A2#FFFFFF#000000##FFFFFF
##6940A21.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0556A5
Deuteranopia (green-blind)
#1F55A0
Tritanopia (blue-blind)
#5D556B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6940a2;
/* rgb */ color: rgb(105, 64, 162);
/* oklch */ color: oklch(46.9% 0.153 299.8);
Tailwind
colors: {
  custom: {
    50: '#9877be',
    500: '#6940a2',
    950: '#000000',
  },
}
SCSS
$custom: #6940a2;
$custom-light: #9877be;
$custom-dark: #000000;
JSON
{
  "hex": "#6940a2",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 265.102,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46927,
    "c": 0.15282,
    "h": 299.8
  },
  "luminance": 0.09279
}

Semantic roles & 50–950 ramp

primary
#6940A2
secondary
#A4BC82
accent
#D3559E
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6940A2

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

Preview Lab → · Contrast checker → · Palette generator →

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