#6F40C7#6F40C7

#6F40C7 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.3% C 0.198 H 294.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#6F40C7
RGBrgb(111, 64, 199)
HSLhsl(261, 55%, 52%)
HSVhsv(261, 68%, 78%)
CMYKcmyk(44.2%, 67.8%, 0%, 22%)
CIE-LABlab(39.86, 49.99, -63.15)
CIE-LCHlch(39.86, 80.54, 308.36°)
OKLaboklab(50.35% 0.0808 -0.1806)
OKLCHoklch(50.35% 0.198 294.1)
XYZxyz(18.6949, 11.1693, 55.1927)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40C7 #98C740
analogous
#4055C7 #6F40C7 #B340C7
triadic
#6F40C7 #C76F40 #40C76F
tetradic
#6F40C7 #C74055 #98C740 #40C7B3
square
#6F40C7 #C74055 #98C740 #40C7B3
split-complementary
#6F40C7 #C7B340 #55C740
monochromatic
#3B206D #542E9C #6F40C7 #936FD5 #B69FE3

Accessibility & contrast

On white

6.49
#6F40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6F40C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40C7
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40C7#FFFFFF#000000##FFFFFF
##6F40C71.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#005CC4
Tritanopia (blue-blind)
#56617E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6f40c7;
/* rgb */ color: rgb(111, 64, 199);
/* oklch */ color: oklch(50.3% 0.198 294.1);
Tailwind
colors: {
  custom: {
    50: '#9f78d9',
    500: '#6f40c7',
    950: '#000000',
  },
}
SCSS
$custom: #6f40c7;
$custom-light: #9f78d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40c7",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 260.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50347,
    "c": 0.19789,
    "h": 294.1
  },
  "luminance": 0.1117
}

Semantic roles & 50–950 ramp

primary
#6F40C7
secondary
#BACF94
accent
#DE4AAA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6F40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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