#6D40DB#6D40DB

#6D40DB is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.8% C 0.221 H 289.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#6D40DB
RGBrgb(109, 64, 219)
HSLhsl(257, 68%, 55%)
HSVhsv(257, 71%, 86%)
CMYKcmyk(50.2%, 70.8%, 0%, 14.1%)
CIE-LABlab(41.27, 55.06, -72.41)
CIE-LCHlch(41.27, 90.96, 307.25°)
OKLaboklab(51.8% 0.0745 -0.2079)
OKLCHoklch(51.8% 0.221 289.7)
XYZxyz(20.9226, 12.0316, 68.2240)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40DB #AEDB40
analogous
#4061DB #6D40DB #BA40DB
triadic
#6D40DB #DB6D40 #40DB6D
tetradic
#6D40DB #DB4061 #AEDB40 #40DBBA
square
#6D40DB #DB4061 #AEDB40 #40DBBA
split-complementary
#6D40DB #DBBA40 #61DB40
monochromatic
#391987 #4F23BB #6D40DB #9473E5 #BCA7EE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6D40DB#FFFFFF#000000##FFFFFF
##6D40DB1.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)
#0064E0
Deuteranopia (green-blind)
#005ED8
Tritanopia (blue-blind)
#466989
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6d40db;
/* rgb */ color: rgb(109, 64, 219);
/* oklch */ color: oklch(51.8% 0.221 289.7);
Tailwind
colors: {
  custom: {
    50: '#a179e7',
    500: '#6d40db',
    950: '#000000',
  },
}
SCSS
$custom: #6d40db;
$custom-light: #a179e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40db",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 257.419,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51798,
    "c": 0.22082,
    "h": 289.7
  },
  "luminance": 0.12032
}

Semantic roles & 50–950 ramp

primary
#6D40DB
secondary
#C9DC9B
accent
#EB3DB8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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