#6D40C8#6D40C8

#6D40C8 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.199 H 293.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#6D40C8
RGBrgb(109, 64, 200)
HSLhsl(260, 55%, 52%)
HSVhsv(260, 68%, 78%)
CMYKcmyk(45.5%, 68%, 0%, 21.6%)
CIE-LABlab(39.73, 49.89, -63.96)
CIE-LCHlch(39.73, 81.12, 307.95°)
OKLaboklab(50.22% 0.0779 -0.1831)
OKLCHoklch(50.22% 0.199 293)
XYZxyz(18.5625, 11.0876, 55.7945)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40C8 #9BC840
analogous
#4057C8 #6D40C8 #B140C8
triadic
#6D40C8 #C86D40 #40C86D
tetradic
#6D40C8 #C84057 #9BC840 #40C8B1
square
#6D40C8 #C84057 #9BC840 #40C8B1
split-complementary
#6D40C8 #C8B140 #57C840
monochromatic
#3A206E #522D9D #6D40C8 #9170D6 #B69FE3

Accessibility & contrast

On white

6.53
#6D40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6D40C8
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40C8#FFFFFF#000000##FFFFFF
##6D40C81.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#52627F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6d40c8;
/* rgb */ color: rgb(109, 64, 200);
/* oklch */ color: oklch(50.2% 0.199 293.0);
Tailwind
colors: {
  custom: {
    50: '#9e78da',
    500: '#6d40c8',
    950: '#000000',
  },
}
SCSS
$custom: #6d40c8;
$custom-light: #9e78da;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40c8",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 259.853,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50224,
    "c": 0.19897,
    "h": 293
  },
  "luminance": 0.11088
}

Semantic roles & 50–950 ramp

primary
#6D40C8
secondary
#BCD094
accent
#DF49AD
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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