#6A40DC#6A40DC

#6A40DC is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.6% C 0.222 H 288.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#6A40DC
RGBrgb(106, 64, 220)
HSLhsl(256, 69%, 56%)
HSVhsv(256, 71%, 86%)
CMYKcmyk(51.8%, 70.9%, 0%, 13.7%)
CIE-LABlab(41.05, 54.87, -73.34)
CIE-LCHlch(41.05, 91.59, 306.80°)
OKLaboklab(51.6% 0.07 -0.2107)
OKLCHoklch(51.6% 0.222 288.4)
XYZxyz(20.6917, 11.8973, 68.9024)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40DC #B2DC40
analogous
#4064DC #6A40DC #B840DC
triadic
#6A40DC #DC6A40 #40DC6A
tetradic
#6A40DC #DC4064 #B2DC40 #40DCB8
square
#6A40DC #DC4064 #B2DC40 #40DCB8
split-complementary
#6A40DC #DCB840 #64DC40
monochromatic
#371989 #4C23BC #6A40DC #9274E5 #BBA7EF

Accessibility & contrast

On white

6.21
#6A40DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6A40DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40DC
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40DC#FFFFFF#000000##FFFFFF
##6A40DC1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E1
Deuteranopia (green-blind)
#005DD9
Tritanopia (blue-blind)
#3F698A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6a40dc;
/* rgb */ color: rgb(106, 64, 220);
/* oklch */ color: oklch(51.6% 0.222 288.4);
Tailwind
colors: {
  custom: {
    50: '#9f78e8',
    500: '#6a40dc',
    950: '#000000',
  },
}
SCSS
$custom: #6a40dc;
$custom-light: #9f78e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40dc",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 256.154,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51602,
    "c": 0.22206,
    "h": 288.4
  },
  "luminance": 0.11898
}

Semantic roles & 50–950 ramp

primary
#6A40DC
secondary
#CBDC9B
accent
#EC3CBC
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6A40DC

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

Preview Lab → · Contrast checker → · Palette generator →

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