#6A40DB#6A40DB

#6A40DB is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.221 H 288.5°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6A40DB
RGBrgb(106, 64, 219)
HSLhsl(256, 68%, 55%)
HSVhsv(256, 71%, 86%)
CMYKcmyk(51.6%, 70.8%, 0%, 14.1%)
CIE-LABlab(40.97, 54.59, -72.91)
CIE-LCHlch(40.97, 91.08, 306.83°)
OKLaboklab(51.52% 0.0702 -0.2095)
OKLCHoklch(51.52% 0.221 288.5)
XYZxyz(20.5597, 11.8445, 68.2070)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40DB #B1DB40
analogous
#4063DB #6A40DB #B740DB
triadic
#6A40DB #DB6A40 #40DB6A
tetradic
#6A40DB #DB4063 #B1DB40 #40DBB7
square
#6A40DB #DB4063 #B1DB40 #40DBB7
split-complementary
#6A40DB #DBB740 #63DB40
monochromatic
#371987 #4C23BB #6A40DB #9273E5 #BAA7EE

Accessibility & contrast

On white

6.23
#6A40DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6A40DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40DB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40DB#FFFFFF#000000##FFFFFF
##6A40DB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#005DD8
Tritanopia (blue-blind)
#3F6989
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6a40db;
/* rgb */ color: rgb(106, 64, 219);
/* oklch */ color: oklch(51.5% 0.221 288.5);
Tailwind
colors: {
  custom: {
    50: '#9f78e7',
    500: '#6a40db',
    950: '#000000',
  },
}
SCSS
$custom: #6a40db;
$custom-light: #9f78e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40db",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 256.258,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51516,
    "c": 0.22092,
    "h": 288.5
  },
  "luminance": 0.11845
}

Semantic roles & 50–950 ramp

primary
#6A40DB
secondary
#CADC9B
accent
#EB3DBC
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6A40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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