#6C40CF#6C40CF

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

Color values

HEX#6C40CF
RGBrgb(108, 64, 207)
HSLhsl(258, 60%, 53%)
HSVhsv(258, 69%, 81%)
CMYKcmyk(47.8%, 69.1%, 0%, 18.8%)
CIE-LABlab(40.18, 51.62, -67.29)
CIE-LCHlch(40.18, 84.80, 307.49°)
OKLaboklab(50.7% 0.0753 -0.1929)
OKLCHoklch(50.7% 0.207 291.3)
XYZxyz(19.2770, 11.3592, 60.1962)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40CF #A3CF40
analogous
#405BCF #6C40CF #B440CF
triadic
#6C40CF #CF6C40 #40CF6C
tetradic
#6C40CF #CF405B #A3CF40 #40CFB4
square
#6C40CF #CF405B #A3CF40 #40CFB4
split-complementary
#6C40CF #CFB440 #5BCF40
monochromatic
#391E77 #512AA8 #6C40CF #9271DB #B7A2E8

Accessibility & contrast

On white

6.42
#6C40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6C40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40CF
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40CF#FFFFFF#000000##FFFFFF
##6C40CF1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c40cf;
/* rgb */ color: rgb(108, 64, 207);
/* oklch */ color: oklch(50.7% 0.207 291.3);
Tailwind
colors: {
  custom: {
    50: '#9e78df',
    500: '#6c40cf',
    950: '#000000',
  },
}
SCSS
$custom: #6c40cf;
$custom-light: #9e78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40cf",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 258.462,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50696,
    "c": 0.20708,
    "h": 291.3
  },
  "luminance": 0.1136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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