#6D40BE#6D40BE

#6D40BE is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.187 H 295.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#6D40BE
RGBrgb(109, 64, 190)
HSLhsl(261, 50%, 50%)
HSVhsv(261, 66%, 75%)
CMYKcmyk(42.6%, 66.3%, 0%, 25.5%)
CIE-LABlab(38.96, 47.19, -59.38)
CIE-LCHlch(38.96, 75.84, 308.47°)
OKLaboklab(49.43% 0.0793 -0.1696)
OKLCHoklch(49.43% 0.187 295)
XYZxyz(17.4319, 10.6353, 49.8396)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40BE #91BE40
analogous
#4052BE #6D40BE #AC40BE
triadic
#6D40BE #BE6D40 #40BE6D
tetradic
#6D40BE #BE4052 #91BE40 #40BEAC
square
#6D40BE #BE4052 #91BE40 #40BEAC
split-complementary
#6D40BE #BEAC40 #52BE40
monochromatic
#382162 #533190 #6D40BE #906DCE #B39BDD

Accessibility & contrast

On white

6.72
#6D40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6D40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40BE
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40BE#FFFFFF#000000##FFFFFF
##6D40BE1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d40be;
/* rgb */ color: rgb(109, 64, 190);
/* oklch */ color: oklch(49.4% 0.187 295.0);
Tailwind
colors: {
  custom: {
    50: '#9d78d2',
    500: '#6d40be',
    950: '#000000',
  },
}
SCSS
$custom: #6d40be;
$custom-light: #9d78d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40be",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 261.429,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49432,
    "c": 0.18723,
    "h": 295
  },
  "luminance": 0.10636
}

Semantic roles & 50–950 ramp

primary
#6D40BE
secondary
#B5C990
accent
#D94FA8
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6D40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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