#6F40D9#6F40D9

#6F40D9 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.219 H 290.8°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#6F40D9
RGBrgb(111, 64, 217)
HSLhsl(258, 67%, 55%)
HSVhsv(258, 71%, 85%)
CMYKcmyk(48.8%, 70.5%, 0%, 14.9%)
CIE-LABlab(41.30, 54.84, -71.19)
CIE-LCHlch(41.30, 89.86, 307.61°)
OKLaboklab(51.82% 0.0777 -0.2043)
OKLCHoklch(51.82% 0.219 290.8)
XYZxyz(20.9098, 12.0552, 66.8573)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40D9 #AAD940
analogous
#405ED9 #6F40D9 #BB40D9
triadic
#6F40D9 #D96F40 #40D96F
tetradic
#6F40D9 #D9405E #AAD940 #40D9BB
square
#6F40D9 #D9405E #AAD940 #40D9BB
split-complementary
#6F40D9 #D9BB40 #5ED940
monochromatic
#3B1A84 #5224B7 #6F40D9 #9573E3 #BCA6ED

Accessibility & contrast

On white

6.16
#6F40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#6F40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40D9
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40D9#FFFFFF#000000##FFFFFF
##6F40D91.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DE
Deuteranopia (green-blind)
#005ED6
Tritanopia (blue-blind)
#4C6888
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6f40d9;
/* rgb */ color: rgb(111, 64, 217);
/* oklch */ color: oklch(51.8% 0.219 290.8);
Tailwind
colors: {
  custom: {
    50: '#a179e6',
    500: '#6f40d9',
    950: '#000000',
  },
}
SCSS
$custom: #6f40d9;
$custom-light: #a179e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40d9",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 258.431,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51821,
    "c": 0.21853,
    "h": 290.8
  },
  "luminance": 0.12056
}

Semantic roles & 50–950 ramp

primary
#6F40D9
secondary
#C7DA9A
accent
#EA3EB5
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6F40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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