#6D40CA#6D40CA

#6D40CA is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.201 H 292.7°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#6D40CA
RGBrgb(109, 64, 202)
HSLhsl(260, 57%, 52%)
HSVhsv(260, 68%, 79%)
CMYKcmyk(46%, 68.3%, 0%, 20.8%)
CIE-LABlab(39.88, 50.43, -64.87)
CIE-LCHlch(39.88, 82.16, 307.86°)
OKLaboklab(50.39% 0.0775 -0.1858)
OKLCHoklch(50.39% 0.201 292.7)
XYZxyz(18.7978, 11.1817, 57.0335)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40CA #9DCA40
analogous
#4058CA #6D40CA #B240CA
triadic
#6D40CA #CA6D40 #40CA6D
tetradic
#6D40CA #CA4058 #9DCA40 #40CAB2
square
#6D40CA #CA4058 #9DCA40 #40CAB2
split-complementary
#6D40CA #CAB240 #58CA40
monochromatic
#3A1F70 #522CA0 #6D40CA #9270D7 #B6A0E5

Accessibility & contrast

On white

6.49
#6D40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6D40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40CA
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40CA#FFFFFF#000000##FFFFFF
##6D40CA1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d40ca;
/* rgb */ color: rgb(109, 64, 202);
/* oklch */ color: oklch(50.4% 0.201 292.7);
Tailwind
colors: {
  custom: {
    50: '#9e78db',
    500: '#6d40ca',
    950: '#000000',
  },
}
SCSS
$custom: #6d40ca;
$custom-light: #9e78db;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40ca",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 259.565,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50386,
    "c": 0.20129,
    "h": 292.7
  },
  "luminance": 0.11182
}

Semantic roles & 50–950 ramp

primary
#6D40CA
secondary
#BDD195
accent
#E048AE
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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