#6F40D5#6F40D5

#6F40D5 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.214 H 291.5°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6F40D5
RGBrgb(111, 64, 213)
HSLhsl(259, 64%, 54%)
HSVhsv(259, 70%, 84%)
CMYKcmyk(47.9%, 70%, 0%, 16.5%)
CIE-LABlab(40.98, 53.76, -69.43)
CIE-LCHlch(40.98, 87.81, 307.75°)
OKLaboklab(51.49% 0.0784 -0.1991)
OKLCHoklch(51.49% 0.214 291.5)
XYZxyz(20.3958, 11.8496, 64.1505)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40D5 #A6D540
analogous
#405CD5 #6F40D5 #B940D5
triadic
#6F40D5 #D56F40 #40D56F
tetradic
#6F40D5 #D5405C #A6D540 #40D5B9
square
#6F40D5 #D5405C #A6D540 #40D5B9
split-complementary
#6F40D5 #D5B940 #5CD540
monochromatic
#3B1C7F #5227B1 #6F40D5 #9572E0 #BBA4EB

Accessibility & contrast

On white

6.23
#6F40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6F40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40D5
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40D5#FFFFFF#000000##FFFFFF
##6F40D51.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#005DD2
Tritanopia (blue-blind)
#4E6686
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6f40d5;
/* rgb */ color: rgb(111, 64, 213);
/* oklch */ color: oklch(51.5% 0.214 291.5);
Tailwind
colors: {
  custom: {
    50: '#a179e3',
    500: '#6f40d5',
    950: '#000000',
  },
}
SCSS
$custom: #6f40d5;
$custom-light: #a179e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40d5",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 258.926,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51487,
    "c": 0.21398,
    "h": 291.5
  },
  "luminance": 0.1185
}

Semantic roles & 50–950 ramp

primary
#6F40D5
secondary
#C4D899
accent
#E741B3
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6F40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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