#6E40AE#6E40AE

#6E40AE is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.168 H 299.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#6E40AE
RGBrgb(110, 64, 174)
HSLhsl(265, 46%, 47%)
HSVhsv(265, 63%, 68%)
CMYKcmyk(36.8%, 63.2%, 0%, 31.8%)
CIE-LABlab(37.91, 43.14, -51.63)
CIE-LCHlch(37.91, 67.29, 309.88°)
OKLaboklab(48.33% 0.0822 -0.1468)
OKLCHoklch(48.33% 0.168 299.3)
XYZxyz(15.9019, 10.0376, 41.1359)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40AE #80AE40
analogous
#4049AE #6E40AE #A540AE
triadic
#6E40AE #AE6E40 #40AE6E
tetradic
#6E40AE #AE4049 #80AE40 #40AEA5
square
#6E40AE #AE4049 #80AE40 #40AEA5
split-complementary
#6E40AE #AEA540 #49AE40
monochromatic
#351F55 #523081 #6E40AE #8E65C6 #AF92D7

Accessibility & contrast

On white

6.98
#6E40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6E40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40AE
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40AE#FFFFFF#000000##FFFFFF
##6E40AE1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0F58AC
Tritanopia (blue-blind)
#605871
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6e40ae;
/* rgb */ color: rgb(110, 64, 174);
/* oklch */ color: oklch(48.3% 0.168 299.3);
Tailwind
colors: {
  custom: {
    50: '#9c77c7',
    500: '#6e40ae',
    950: '#000000',
  },
}
SCSS
$custom: #6e40ae;
$custom-light: #9c77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40ae",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 265.091,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48333,
    "c": 0.16828,
    "h": 299.3
  },
  "luminance": 0.10038
}

Semantic roles & 50–950 ramp

primary
#6E40AE
secondary
#AAC288
accent
#D6529F
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0913
muted
#7E7B82

Preview Lab

Preview with #6E40AE

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

Preview Lab → · Contrast checker → · Palette generator →

#6E40AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva