#6D40CF#6D40CF

#6D40CF is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.207 H 291.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#6D40CF
RGBrgb(109, 64, 207)
HSLhsl(259, 60%, 53%)
HSVhsv(259, 69%, 81%)
CMYKcmyk(47.3%, 69.1%, 0%, 18.8%)
CIE-LABlab(40.28, 51.79, -67.11)
CIE-LCHlch(40.28, 84.77, 307.66°)
OKLaboklab(50.79% 0.0767 -0.1923)
OKLCHoklch(50.79% 0.207 291.7)
XYZxyz(19.3994, 11.4223, 60.2020)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40CF #A2CF40
analogous
#405ACF #6D40CF #B440CF
triadic
#6D40CF #CF6D40 #40CF6D
tetradic
#6D40CF #CF405A #A2CF40 #40CFB4
square
#6D40CF #CF405A #A2CF40 #40CFB4
split-complementary
#6D40CF #CFB440 #5ACF40
monochromatic
#3A1E77 #522AA8 #6D40CF #9271DB #B8A2E8

Accessibility & contrast

On white

6.39
#6D40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6D40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40CF
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40CF#FFFFFF#000000##FFFFFF
##6D40CF1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#4E6483
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6d40cf;
/* rgb */ color: rgb(109, 64, 207);
/* oklch */ color: oklch(50.8% 0.207 291.7);
Tailwind
colors: {
  custom: {
    50: '#9f78df',
    500: '#6d40cf',
    950: '#000000',
  },
}
SCSS
$custom: #6d40cf;
$custom-light: #9f78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40cf",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 258.881,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50794,
    "c": 0.20708,
    "h": 291.7
  },
  "luminance": 0.11423
}

Semantic roles & 50–950 ramp

primary
#6D40CF
secondary
#C1D497
accent
#E345B1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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