#6C40C2#6C40C2

#6C40C2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.6% C 0.192 H 293.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#6C40C2
RGBrgb(108, 64, 194)
HSLhsl(260, 52%, 51%)
HSVhsv(260, 67%, 76%)
CMYKcmyk(44.3%, 67%, 0%, 23.9%)
CIE-LABlab(39.16, 48.07, -61.40)
CIE-LCHlch(39.16, 77.98, 308.06°)
OKLaboklab(49.64% 0.0773 -0.1756)
OKLCHoklch(49.64% 0.192 293.8)
XYZxyz(17.7527, 10.7495, 52.1680)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40C2 #96C240
analogous
#4055C2 #6C40C2 #AD40C2
triadic
#6C40C2 #C26C40 #40C26C
tetradic
#6C40C2 #C24055 #96C240 #40C2AD
square
#6C40C2 #C24055 #96C240 #40C2AD
split-complementary
#6C40C2 #C2AD40 #55C240
monochromatic
#382167 #523095 #6C40C2 #906ED1 #B39DE0

Accessibility & contrast

On white

6.67
#6C40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6C40C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40C2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40C2#FFFFFF#000000##FFFFFF
##6C40C21.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#545F7C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6c40c2;
/* rgb */ color: rgb(108, 64, 194);
/* oklch */ color: oklch(49.6% 0.192 293.8);
Tailwind
colors: {
  custom: {
    50: '#9d78d5',
    500: '#6c40c2',
    950: '#000000',
  },
}
SCSS
$custom: #6c40c2;
$custom-light: #9d78d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40c2",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 260.308,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.49644,
    "c": 0.19189,
    "h": 293.8
  },
  "luminance": 0.1075
}

Semantic roles & 50–950 ramp

primary
#6C40C2
secondary
#B8CC92
accent
#DB4DAB
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6C40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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