#6F40C5#6F40C5

#6F40C5 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.196 H 294.5°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#6F40C5
RGBrgb(111, 64, 197)
HSLhsl(261, 53%, 51%)
HSVhsv(261, 68%, 77%)
CMYKcmyk(43.7%, 67.5%, 0%, 22.7%)
CIE-LABlab(39.71, 49.45, -62.24)
CIE-LCHlch(39.71, 79.49, 308.47°)
OKLaboklab(50.19% 0.0811 -0.178)
OKLCHoklch(50.19% 0.196 294.5)
XYZxyz(18.4643, 11.0770, 53.9777)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40C5 #96C540
analogous
#4053C5 #6F40C5 #B140C5
triadic
#6F40C5 #C56F40 #40C56F
tetradic
#6F40C5 #C54053 #96C540 #40C5B1
square
#6F40C5 #C54053 #96C540 #40C5B1
split-complementary
#6F40C5 #C5B140 #53C540
monochromatic
#3A206A #542F99 #6F40C5 #926FD3 #B69EE2

Accessibility & contrast

On white

6.53
#6F40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6F40C5
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40C5#FFFFFF#000000##FFFFFF
##6F40C51.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#57607D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6f40c5;
/* rgb */ color: rgb(111, 64, 197);
/* oklch */ color: oklch(50.2% 0.196 294.5);
Tailwind
colors: {
  custom: {
    50: '#9f78d7',
    500: '#6f40c5',
    950: '#000000',
  },
}
SCSS
$custom: #6f40c5;
$custom-light: #9f78d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40c5",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 261.203,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50188,
    "c": 0.19557,
    "h": 294.5
  },
  "luminance": 0.11078
}

Semantic roles & 50–950 ramp

primary
#6F40C5
secondary
#B9CE93
accent
#DD4BA9
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6F40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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