#6D40AF#6D40AF

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

Color values

HEX#6D40AF
RGBrgb(109, 64, 175)
HSLhsl(264, 46%, 47%)
HSVhsv(264, 63%, 69%)
CMYKcmyk(37.7%, 63.4%, 0%, 31.4%)
CIE-LABlab(37.87, 43.18, -52.31)
CIE-LCHlch(37.87, 67.83, 309.54°)
OKLaboklab(48.3% 0.0808 -0.1488)
OKLCHoklch(48.3% 0.169 298.5)
XYZxyz(15.8760, 10.0129, 41.6454)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40AF #82AF40
analogous
#404BAF #6D40AF #A540AF
triadic
#6D40AF #AF6D40 #40AF6D
tetradic
#6D40AF #AF404B #82AF40 #40AFA5
square
#6D40AF #AF404B #82AF40 #40AFA5
split-complementary
#6D40AF #AFA540 #4BAF40
monochromatic
#351F55 #513082 #6D40AF #8D65C7 #AE92D7

Accessibility & contrast

On white

6.99
#6D40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#6D40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40AF
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40AF#FFFFFF#000000##FFFFFF
##6D40AF1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0858AD
Tritanopia (blue-blind)
#5E5971
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6d40af;
/* rgb */ color: rgb(109, 64, 175);
/* oklch */ color: oklch(48.3% 0.169 298.5);
Tailwind
colors: {
  custom: {
    50: '#9c77c8',
    500: '#6d40af',
    950: '#000000',
  },
}
SCSS
$custom: #6d40af;
$custom-light: #9c77c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40af",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 264.324,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48297,
    "c": 0.16934,
    "h": 298.5
  },
  "luminance": 0.10013
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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