#6A40CE#6A40CE

#6A40CE is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.206 H 290.7°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#6A40CE
RGBrgb(106, 64, 206)
HSLhsl(258, 59%, 53%)
HSVhsv(258, 69%, 81%)
CMYKcmyk(48.5%, 68.9%, 0%, 19.2%)
CIE-LABlab(39.89, 51.00, -67.18)
CIE-LCHlch(39.89, 84.35, 307.20°)
OKLaboklab(50.42% 0.0727 -0.1927)
OKLCHoklch(50.42% 0.206 290.7)
XYZxyz(18.9147, 11.1865, 59.5431)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40CE #A4CE40
analogous
#405DCE #6A40CE #B140CE
triadic
#6A40CE #CE6A40 #40CE6A
tetradic
#6A40CE #CE405D #A4CE40 #40CEB1
square
#6A40CE #CE405D #A4CE40 #40CEB1
split-complementary
#6A40CE #CEB140 #5DCE40
monochromatic
#381E75 #4F2BA6 #6A40CE #9071DA #B6A1E7

Accessibility & contrast

On white

6.49
#6A40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6A40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40CE
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40CE#FFFFFF#000000##FFFFFF
##6A40CE1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#496482
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6a40ce;
/* rgb */ color: rgb(106, 64, 206);
/* oklch */ color: oklch(50.4% 0.206 290.7);
Tailwind
colors: {
  custom: {
    50: '#9d78de',
    500: '#6a40ce',
    950: '#000000',
  },
}
SCSS
$custom: #6a40ce;
$custom-light: #9d78de;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40ce",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 257.746,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50418,
    "c": 0.20591,
    "h": 290.7
  },
  "luminance": 0.11187
}

Semantic roles & 50–950 ramp

primary
#6A40CE
secondary
#C1D496
accent
#E245B4
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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