#6F40BF#6F40BF

#6F40BF is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.189 H 295.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#6F40BF
RGBrgb(111, 64, 191)
HSLhsl(262, 50%, 50%)
HSVhsv(262, 66%, 75%)
CMYKcmyk(41.9%, 66.5%, 0%, 25.1%)
CIE-LABlab(39.25, 47.85, -59.47)
CIE-LCHlch(39.25, 76.33, 308.82°)
OKLaboklab(49.72% 0.0819 -0.1698)
OKLCHoklch(49.72% 0.189 295.8)
XYZxyz(17.7904, 10.8075, 50.4288)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40BF #90BF40
analogous
#4050BF #6F40BF #AF40BF
triadic
#6F40BF #BF6F40 #40BF6F
tetradic
#6F40BF #BF4050 #90BF40 #40BFAF
square
#6F40BF #BF4050 #90BF40 #40BFAF
split-complementary
#6F40BF #BFAF40 #50BF40
monochromatic
#3A2163 #543191 #6F40BF #926ECE #B49CDE

Accessibility & contrast

On white

6.64
#6F40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6F40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40BF
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40BF#FFFFFF#000000##FFFFFF
##6F40BF1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#5A5E7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6f40bf;
/* rgb */ color: rgb(111, 64, 191);
/* oklch */ color: oklch(49.7% 0.189 295.8);
Tailwind
colors: {
  custom: {
    50: '#9e78d3',
    500: '#6f40bf',
    950: '#000000',
  },
}
SCSS
$custom: #6f40bf;
$custom-light: #9e78d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40bf",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 262.205,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49719,
    "c": 0.18857,
    "h": 295.8
  },
  "luminance": 0.10808
}

Semantic roles & 50–950 ramp

primary
#6F40BF
secondary
#B5CA91
accent
#D94EA6
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6F40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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