#6F40C6#6F40C6

#6F40C6 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.3% C 0.197 H 294.3°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#6F40C6
RGBrgb(111, 64, 198)
HSLhsl(261, 54%, 51%)
HSVhsv(261, 68%, 78%)
CMYKcmyk(43.9%, 67.7%, 0%, 22.4%)
CIE-LABlab(39.79, 49.72, -62.69)
CIE-LCHlch(39.79, 80.02, 308.42°)
OKLaboklab(50.27% 0.081 -0.1793)
OKLCHoklch(50.27% 0.197 294.3)
XYZxyz(18.5792, 11.1230, 54.5832)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40C6 #97C640
analogous
#4054C6 #6F40C6 #B240C6
triadic
#6F40C6 #C66F40 #40C66F
tetradic
#6F40C6 #C64054 #97C640 #40C6B2
square
#6F40C6 #C64054 #97C640 #40C6B2
split-complementary
#6F40C6 #C6B240 #54C640
monochromatic
#3B206C #542E9B #6F40C6 #936FD4 #B69EE2

Accessibility & contrast

On white

6.51
#6F40C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6F40C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40C6
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40C6#FFFFFF#000000##FFFFFF
##6F40C61.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6f40c6;
/* rgb */ color: rgb(111, 64, 198);
/* oklch */ color: oklch(50.3% 0.197 294.3);
Tailwind
colors: {
  custom: {
    50: '#9f78d8',
    500: '#6f40c6',
    950: '#000000',
  },
}
SCSS
$custom: #6f40c6;
$custom-light: #9f78d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40c6",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 261.045,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50268,
    "c": 0.19673,
    "h": 294.3
  },
  "luminance": 0.11124
}

Semantic roles & 50–950 ramp

primary
#6F40C6
secondary
#BACE93
accent
#DD4AAA
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6F40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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