#6F40C4#6F40C4

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

Color values

HEX#6F40C4
RGBrgb(111, 64, 196)
HSLhsl(261, 53%, 51%)
HSVhsv(261, 67%, 77%)
CMYKcmyk(43.4%, 67.3%, 0%, 23.1%)
CIE-LABlab(39.63, 49.18, -61.78)
CIE-LCHlch(39.63, 78.97, 308.52°)
OKLaboklab(50.11% 0.0813 -0.1766)
OKLCHoklch(50.11% 0.194 294.7)
XYZxyz(18.3501, 11.0314, 53.3763)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40C4 #95C440
analogous
#4053C4 #6F40C4 #B140C4
triadic
#6F40C4 #C46F40 #40C46F
tetradic
#6F40C4 #C44053 #95C440 #40C4B1
square
#6F40C4 #C44053 #95C440 #40C4B1
split-complementary
#6F40C4 #C4B140 #53C440
monochromatic
#3A2069 #542F98 #6F40C4 #926FD2 #B69EE1

Accessibility & contrast

On white

6.55
#6F40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6F40C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40C4
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40C4#FFFFFF#000000##FFFFFF
##6F40C41.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#005BC1
Tritanopia (blue-blind)
#58607D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6f40c4;
/* rgb */ color: rgb(111, 64, 196);
/* oklch */ color: oklch(50.1% 0.194 294.7);
Tailwind
colors: {
  custom: {
    50: '#9f78d7',
    500: '#6f40c4',
    950: '#000000',
  },
}
SCSS
$custom: #6f40c4;
$custom-light: #9f78d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40c4",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 261.364,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50109,
    "c": 0.1944,
    "h": 294.7
  },
  "luminance": 0.11032
}

Semantic roles & 50–950 ramp

primary
#6F40C4
secondary
#B8CD93
accent
#DC4CA9
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6F40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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