#6D40C6#6D40C6

#6D40C6 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.1% C 0.197 H 293.4°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#6D40C6
RGBrgb(109, 64, 198)
HSLhsl(260, 54%, 51%)
HSVhsv(260, 68%, 78%)
CMYKcmyk(44.9%, 67.7%, 0%, 22.4%)
CIE-LABlab(39.57, 49.34, -63.05)
CIE-LCHlch(39.57, 80.07, 308.05°)
OKLaboklab(50.06% 0.0782 -0.1804)
OKLCHoklch(50.06% 0.197 293.4)
XYZxyz(18.3303, 10.9947, 54.5715)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40C6 #99C640
analogous
#4056C6 #6D40C6 #B040C6
triadic
#6D40C6 #C66D40 #40C66D
tetradic
#6D40C6 #C64056 #99C640 #40C6B0
square
#6D40C6 #C64056 #99C640 #40C6B0
split-complementary
#6D40C6 #C6B040 #56C640
monochromatic
#39206C #532E9B #6D40C6 #916FD4 #B59EE2

Accessibility & contrast

On white

6.56
#6D40C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6D40C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40C6
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40C6#FFFFFF#000000##FFFFFF
##6D40C61.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCA
Deuteranopia (green-blind)
#005BC3
Tritanopia (blue-blind)
#53617E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6d40c6;
/* rgb */ color: rgb(109, 64, 198);
/* oklch */ color: oklch(50.1% 0.197 293.4);
Tailwind
colors: {
  custom: {
    50: '#9e78d8',
    500: '#6d40c6',
    950: '#000000',
  },
}
SCSS
$custom: #6d40c6;
$custom-light: #9e78d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40c6",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 260.149,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50064,
    "c": 0.19663,
    "h": 293.4
  },
  "luminance": 0.10995
}

Semantic roles & 50–950 ramp

primary
#6D40C6
secondary
#BBCE93
accent
#DD4AAC
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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