#6C40CA#6C40CA

#6C40CA is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.201 H 292.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#6C40CA
RGBrgb(108, 64, 202)
HSLhsl(259, 57%, 52%)
HSVhsv(259, 68%, 79%)
CMYKcmyk(46.5%, 68.3%, 0%, 20.8%)
CIE-LABlab(39.78, 50.25, -65.04)
CIE-LCHlch(39.78, 82.19, 307.69°)
OKLaboklab(50.29% 0.0761 -0.1863)
OKLCHoklch(50.29% 0.201 292.2)
XYZxyz(18.6754, 11.1186, 57.0278)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40CA #9ECA40
analogous
#4059CA #6C40CA #B140CA
triadic
#6C40CA #CA6C40 #40CA6C
tetradic
#6C40CA #CA4059 #9ECA40 #40CAB1
square
#6C40CA #CA4059 #9ECA40 #40CAB1
split-complementary
#6C40CA #CAB140 #59CA40
monochromatic
#391F70 #512CA0 #6C40CA #9170D7 #B6A0E5

Accessibility & contrast

On white

6.51
#6C40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6C40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40CA
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40CA#FFFFFF#000000##FFFFFF
##6C40CA1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#4F6280
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6c40ca;
/* rgb */ color: rgb(108, 64, 202);
/* oklch */ color: oklch(50.3% 0.201 292.2);
Tailwind
colors: {
  custom: {
    50: '#9e78db',
    500: '#6c40ca',
    950: '#000000',
  },
}
SCSS
$custom: #6c40ca;
$custom-light: #9e78db;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40ca",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 259.13,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50286,
    "c": 0.20127,
    "h": 292.2
  },
  "luminance": 0.11119
}

Semantic roles & 50–950 ramp

primary
#6C40CA
secondary
#BED195
accent
#E048AF
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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