#6C40D2#6C40D2

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

Color values

HEX#6C40D2
RGBrgb(108, 64, 210)
HSLhsl(258, 62%, 54%)
HSVhsv(258, 70%, 82%)
CMYKcmyk(48.6%, 69.5%, 0%, 17.6%)
CIE-LABlab(40.42, 52.44, -68.62)
CIE-LCHlch(40.42, 86.36, 307.39°)
OKLaboklab(50.94% 0.0748 -0.1968)
OKLCHoklch(50.94% 0.211 290.8)
XYZxyz(19.6473, 11.5073, 62.1462)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40D2 #A6D240
analogous
#405DD2 #6C40D2 #B540D2
triadic
#6C40D2 #D26C40 #40D26C
tetradic
#6C40D2 #D2405D #A6D240 #40D2B5
square
#6C40D2 #D2405D #A6D240 #40D2B5
split-complementary
#6C40D2 #D2B540 #5DD240
monochromatic
#391D7B #5029AC #6C40D2 #9272DE #B8A3E9

Accessibility & contrast

On white

6.36
#6C40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6C40D2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40D2#FFFFFF#000000##FFFFFF
##6C40D21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#4A6584
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6c40d2;
/* rgb */ color: rgb(108, 64, 210);
/* oklch */ color: oklch(50.9% 0.211 290.8);
Tailwind
colors: {
  custom: {
    50: '#9f78e1',
    500: '#6c40d2',
    950: '#000000',
  },
}
SCSS
$custom: #6c40d2;
$custom-light: #9f78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40d2",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 258.082,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50944,
    "c": 0.21054,
    "h": 290.8
  },
  "luminance": 0.11508
}

Semantic roles & 50–950 ramp

primary
#6C40D2
secondary
#C3D698
accent
#E543B4
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6C40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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