#6F40BE#6F40BE

#6F40BE is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.187 H 296.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#6F40BE
RGBrgb(111, 64, 190)
HSLhsl(262, 50%, 50%)
HSVhsv(262, 66%, 75%)
CMYKcmyk(41.6%, 66.3%, 0%, 25.5%)
CIE-LABlab(39.18, 47.58, -59.01)
CIE-LCHlch(39.18, 75.80, 308.88°)
OKLaboklab(49.64% 0.0821 -0.1685)
OKLCHoklch(49.64% 0.187 296)
XYZxyz(17.6808, 10.7636, 49.8513)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40BE #8FBE40
analogous
#4050BE #6F40BE #AE40BE
triadic
#6F40BE #BE6F40 #40BE6F
tetradic
#6F40BE #BE4050 #8FBE40 #40BEAE
square
#6F40BE #BE4050 #8FBE40 #40BEAE
split-complementary
#6F40BE #BEAE40 #50BE40
monochromatic
#3A2162 #543190 #6F40BE #916DCE #B49BDD

Accessibility & contrast

On white

6.66
#6F40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6F40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40BE
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40BE#FFFFFF#000000##FFFFFF
##6F40BE1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#5B5E79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6f40be;
/* rgb */ color: rgb(111, 64, 190);
/* oklch */ color: oklch(49.6% 0.187 296.0);
Tailwind
colors: {
  custom: {
    50: '#9e78d2',
    500: '#6f40be',
    950: '#000000',
  },
}
SCSS
$custom: #6f40be;
$custom-light: #9e78d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40be",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 262.381,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49641,
    "c": 0.18739,
    "h": 296
  },
  "luminance": 0.10764
}

Semantic roles & 50–950 ramp

primary
#6F40BE
secondary
#B4C990
accent
#D94FA5
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6F40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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