#6E40CF#6E40CF

#6E40CF is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.207 H 292.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#6E40CF
RGBrgb(110, 64, 207)
HSLhsl(259, 60%, 53%)
HSVhsv(259, 69%, 81%)
CMYKcmyk(46.9%, 69.1%, 0%, 18.8%)
CIE-LABlab(40.39, 51.96, -66.94)
CIE-LCHlch(40.39, 84.74, 307.82°)
OKLaboklab(50.89% 0.0781 -0.1918)
OKLCHoklch(50.89% 0.207 292.2)
XYZxyz(19.5231, 11.4861, 60.2078)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40CF #A1CF40
analogous
#4059CF #6E40CF #B640CF
triadic
#6E40CF #CF6E40 #40CF6E
tetradic
#6E40CF #CF4059 #A1CF40 #40CFB6
square
#6E40CF #CF4059 #A1CF40 #40CFB6
split-complementary
#6E40CF #CFB640 #59CF40
monochromatic
#3A1E77 #532AA8 #6E40CF #9371DB #B8A2E8

Accessibility & contrast

On white

6.37
#6E40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6E40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40CF
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40CF#FFFFFF#000000##FFFFFF
##6E40CF1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6e40cf;
/* rgb */ color: rgb(110, 64, 207);
/* oklch */ color: oklch(50.9% 0.207 292.2);
Tailwind
colors: {
  custom: {
    50: '#a078df',
    500: '#6e40cf',
    950: '#000000',
  },
}
SCSS
$custom: #6e40cf;
$custom-light: #a078df;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40cf",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 259.301,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50893,
    "c": 0.2071,
    "h": 292.2
  },
  "luminance": 0.11487
}

Semantic roles & 50–950 ramp

primary
#6E40CF
secondary
#C0D497
accent
#E345B0
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6E40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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