#6D40AE#6D40AE

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

Color values

HEX#6D40AE
RGBrgb(109, 64, 174)
HSLhsl(265, 46%, 47%)
HSVhsv(265, 63%, 68%)
CMYKcmyk(37.4%, 63.2%, 0%, 31.8%)
CIE-LABlab(37.80, 42.92, -51.83)
CIE-LCHlch(37.80, 67.29, 309.63°)
OKLaboklab(48.22% 0.0809 -0.1474)
OKLCHoklch(48.22% 0.168 298.7)
XYZxyz(15.7781, 9.9738, 41.1301)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40AE #81AE40
analogous
#404AAE #6D40AE #A440AE
triadic
#6D40AE #AE6D40 #40AE6D
tetradic
#6D40AE #AE404A #81AE40 #40AEA4
square
#6D40AE #AE404A #81AE40 #40AEA4
split-complementary
#6D40AE #AEA440 #4AAE40
monochromatic
#351F55 #513081 #6D40AE #8D65C6 #AE92D7

Accessibility & contrast

On white

7.01
#6D40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6D40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D40AE
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40AE#FFFFFF#000000##FFFFFF
##6D40AE1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0C58AC
Tritanopia (blue-blind)
#5E5871
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6d40ae;
/* rgb */ color: rgb(109, 64, 174);
/* oklch */ color: oklch(48.2% 0.168 298.7);
Tailwind
colors: {
  custom: {
    50: '#9b77c7',
    500: '#6d40ae',
    950: '#000000',
  },
}
SCSS
$custom: #6d40ae;
$custom-light: #9b77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40ae",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 264.545,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48224,
    "c": 0.16813,
    "h": 298.7
  },
  "luminance": 0.09974
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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