#6B40CD#6B40CD

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

Color values

HEX#6B40CD
RGBrgb(107, 64, 205)
HSLhsl(258, 59%, 53%)
HSVhsv(258, 69%, 80%)
CMYKcmyk(47.8%, 68.8%, 0%, 19.6%)
CIE-LABlab(39.91, 50.90, -66.57)
CIE-LCHlch(39.91, 83.79, 307.40°)
OKLaboklab(50.43% 0.0742 -0.1908)
OKLCHoklch(50.43% 0.205 291.3)
XYZxyz(18.9131, 11.1997, 58.9110)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40CD #A2CD40
analogous
#405BCD #6B40CD #B140CD
triadic
#6B40CD #CD6B40 #40CD6B
tetradic
#6B40CD #CD405B #A2CD40 #40CDB1
square
#6B40CD #CD405B #A2CD40 #40CDB1
split-complementary
#6B40CD #CDB140 #5BCD40
monochromatic
#391E74 #502BA5 #6B40CD #9171DA #B6A1E6

Accessibility & contrast

On white

6.48
#6B40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6B40CD
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40CD#FFFFFF#000000##FFFFFF
##6B40CD1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#005BCA
Tritanopia (blue-blind)
#4C6482
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6b40cd;
/* rgb */ color: rgb(107, 64, 205);
/* oklch */ color: oklch(50.4% 0.205 291.3);
Tailwind
colors: {
  custom: {
    50: '#9e78dd',
    500: '#6b40cd',
    950: '#000000',
  },
}
SCSS
$custom: #6b40cd;
$custom-light: #9e78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40cd",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 258.298,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50433,
    "c": 0.20474,
    "h": 291.3
  },
  "luminance": 0.112
}

Semantic roles & 50–950 ramp

primary
#6B40CD
secondary
#C0D396
accent
#E246B2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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