#6E40AF#6E40AF

#6E40AF is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.4% C 0.169 H 299.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#6E40AF
RGBrgb(110, 64, 175)
HSLhsl(265, 46%, 47%)
HSVhsv(265, 63%, 69%)
CMYKcmyk(37.1%, 63.4%, 0%, 31.4%)
CIE-LABlab(37.98, 43.40, -52.12)
CIE-LCHlch(37.98, 67.82, 309.79°)
OKLaboklab(48.41% 0.0822 -0.1482)
OKLCHoklch(48.41% 0.169 299)
XYZxyz(15.9997, 10.0768, 41.6512)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40AF #81AF40
analogous
#4049AF #6E40AF #A640AF
triadic
#6E40AF #AF6E40 #40AF6E
tetradic
#6E40AF #AF4049 #81AF40 #40AFA6
square
#6E40AF #AF4049 #81AF40 #40AFA6
split-complementary
#6E40AF #AFA640 #49AF40
monochromatic
#361F55 #523082 #6E40AF #8E65C7 #AF92D7

Accessibility & contrast

On white

6.96
#6E40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6E40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40AF
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40AF#FFFFFF#000000##FFFFFF
##6E40AF1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0C58AD
Tritanopia (blue-blind)
#5F5971
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6e40af;
/* rgb */ color: rgb(110, 64, 175);
/* oklch */ color: oklch(48.4% 0.169 299.0);
Tailwind
colors: {
  custom: {
    50: '#9c77c8',
    500: '#6e40af',
    950: '#000000',
  },
}
SCSS
$custom: #6e40af;
$custom-light: #9c77c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40af",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 264.865,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48406,
    "c": 0.16948,
    "h": 299
  },
  "luminance": 0.10077
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6E40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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