#6B40AC#6B40AC

#6B40AC is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.9% C 0.165 H 298.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#6B40AC
RGBrgb(107, 64, 172)
HSLhsl(264, 46%, 46%)
HSVhsv(264, 63%, 67%)
CMYKcmyk(37.8%, 62.8%, 0%, 32.5%)
CIE-LABlab(37.43, 41.94, -51.24)
CIE-LCHlch(37.43, 66.22, 309.30°)
OKLaboklab(47.86% 0.0782 -0.1458)
OKLCHoklch(47.86% 0.165 298.2)
XYZxyz(15.3413, 9.7709, 40.0994)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40AC #81AC40
analogous
#404BAC #6B40AC #A140AC
triadic
#6B40AC #AC6B40 #40AC6B
tetradic
#6B40AC #AC404B #81AC40 #40ACA1
square
#6B40AC #AC404B #81AC40 #40ACA1
split-complementary
#6B40AC #ACA140 #4BAC40
monochromatic
#341F53 #4F2F7F #6B40AC #8B64C5 #AC91D6

Accessibility & contrast

On white

7.11
#6B40AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6B40AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B40AC
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40AC#FFFFFF#000000##FFFFFF
##6B40AC1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#0D57AA
Tritanopia (blue-blind)
#5C5870
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6b40ac;
/* rgb */ color: rgb(107, 64, 172);
/* oklch */ color: oklch(47.9% 0.165 298.2);
Tailwind
colors: {
  custom: {
    50: '#9a77c5',
    500: '#6b40ac',
    950: '#000000',
  },
}
SCSS
$custom: #6b40ac;
$custom-light: #9a77c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40ac",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 263.889,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47862,
    "c": 0.16543,
    "h": 298.2
  },
  "luminance": 0.09771
}

Semantic roles & 50–950 ramp

primary
#6B40AC
secondary
#AAC187
accent
#D552A1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6B40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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