#6A40DF#6A40DF

#6A40DF is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.9% C 0.225 H 287.9°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#6A40DF
RGBrgb(106, 64, 223)
HSLhsl(256, 71%, 56%)
HSVhsv(256, 71%, 87%)
CMYKcmyk(52.5%, 71.3%, 0%, 12.5%)
CIE-LABlab(41.31, 55.70, -74.64)
CIE-LCHlch(41.31, 93.13, 306.73°)
OKLaboklab(51.86% 0.0694 -0.2145)
OKLCHoklch(51.86% 0.225 287.9)
XYZxyz(21.0926, 12.0576, 71.0137)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40DF #B5DF40
analogous
#4066DF #6A40DF #BA40DF
triadic
#6A40DF #DF6A40 #40DF6A
tetradic
#6A40DF #DF4066 #B5DF40 #40DFBA
square
#6A40DF #DF4066 #B5DF40 #40DFBA
split-complementary
#6A40DF #DFBA40 #66DF40
monochromatic
#37188D #4B20C1 #6A40DF #9374E8 #BCA9F1

Accessibility & contrast

On white

6.16
#6A40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#6A40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40DF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40DF#FFFFFF#000000##FFFFFF
##6A40DF1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005DDC
Tritanopia (blue-blind)
#3C6A8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6a40df;
/* rgb */ color: rgb(106, 64, 223);
/* oklch */ color: oklch(51.9% 0.225 287.9);
Tailwind
colors: {
  custom: {
    50: '#9f79ea',
    500: '#6a40df',
    950: '#000000',
  },
}
SCSS
$custom: #6a40df;
$custom-light: #9f79ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40df",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 255.849,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51861,
    "c": 0.22548,
    "h": 287.9
  },
  "luminance": 0.12059
}

Semantic roles & 50–950 ramp

primary
#6A40DF
secondary
#CDDE9D
accent
#EE3ABE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6A40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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