#6A40CD#6A40CD

#6A40CD is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.205 H 290.8°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#6A40CD
RGBrgb(106, 64, 205)
HSLhsl(258, 59%, 53%)
HSVhsv(258, 69%, 80%)
CMYKcmyk(48.3%, 68.8%, 0%, 19.6%)
CIE-LABlab(39.81, 50.72, -66.74)
CIE-LCHlch(39.81, 83.83, 307.24°)
OKLaboklab(50.33% 0.0728 -0.1913)
OKLCHoklch(50.33% 0.205 290.8)
XYZxyz(18.7936, 11.1380, 58.9054)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40CD #A3CD40
analogous
#405DCD #6A40CD #B040CD
triadic
#6A40CD #CD6A40 #40CD6A
tetradic
#6A40CD #CD405D #A3CD40 #40CDB0
square
#6A40CD #CD405D #A3CD40 #40CDB0
split-complementary
#6A40CD #CDB040 #5DCD40
monochromatic
#381E74 #4F2BA5 #6A40CD #9071DA #B6A1E6

Accessibility & contrast

On white

6.51
#6A40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6A40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40CD
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40CD#FFFFFF#000000##FFFFFF
##6A40CD1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#005BCA
Tritanopia (blue-blind)
#4A6482
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6a40cd;
/* rgb */ color: rgb(106, 64, 205);
/* oklch */ color: oklch(50.3% 0.205 290.8);
Tailwind
colors: {
  custom: {
    50: '#9d78dd',
    500: '#6a40cd',
    950: '#000000',
  },
}
SCSS
$custom: #6a40cd;
$custom-light: #9d78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40cd",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 257.872,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50335,
    "c": 0.20474,
    "h": 290.8
  },
  "luminance": 0.11139
}

Semantic roles & 50–950 ramp

primary
#6A40CD
secondary
#C1D396
accent
#E246B3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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