#6C40AF#6C40AF

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

Color values

HEX#6C40AF
RGBrgb(108, 64, 175)
HSLhsl(264, 46%, 47%)
HSVhsv(264, 63%, 69%)
CMYKcmyk(38.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(37.75, 42.96, -52.49)
CIE-LCHlch(37.75, 67.83, 309.30°)
OKLaboklab(48.19% 0.0794 -0.1494)
OKLCHoklch(48.19% 0.169 298)
XYZxyz(15.7536, 9.9499, 41.6397)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40AF #83AF40
analogous
#404BAF #6C40AF #A440AF
triadic
#6C40AF #AF6C40 #40AF6C
tetradic
#6C40AF #AF404B #83AF40 #40AFA4
square
#6C40AF #AF404B #83AF40 #40AFA4
split-complementary
#6C40AF #AFA440 #4BAF40
monochromatic
#351F55 #503082 #6C40AF #8C65C7 #AE92D7

Accessibility & contrast

On white

7.02
#6C40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C40AF
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40AF#FFFFFF#000000##FFFFFF
##6C40AF1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c40af;
/* rgb */ color: rgb(108, 64, 175);
/* oklch */ color: oklch(48.2% 0.169 298.0);
Tailwind
colors: {
  custom: {
    50: '#9b77c8',
    500: '#6c40af',
    950: '#000000',
  },
}
SCSS
$custom: #6c40af;
$custom-light: #9b77c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40af",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 263.784,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48189,
    "c": 0.1692,
    "h": 298
  },
  "luminance": 0.0995
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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