#6B40CE#6B40CE

#6B40CE is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.206 H 291.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#6B40CE
RGBrgb(107, 64, 206)
HSLhsl(258, 59%, 53%)
HSVhsv(258, 69%, 81%)
CMYKcmyk(48.1%, 68.9%, 0%, 19.2%)
CIE-LABlab(40.00, 51.17, -67.01)
CIE-LCHlch(40.00, 84.32, 307.36°)
OKLaboklab(50.52% 0.0741 -0.1921)
OKLCHoklch(50.52% 0.206 291.1)
XYZxyz(19.0342, 11.2481, 59.5487)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40CE #A3CE40
analogous
#405CCE #6B40CE #B240CE
triadic
#6B40CE #CE6B40 #40CE6B
tetradic
#6B40CE #CE405C #A3CE40 #40CEB2
square
#6B40CE #CE405C #A3CE40 #40CEB2
split-complementary
#6B40CE #CEB240 #5CCE40
monochromatic
#391E75 #502BA6 #6B40CE #9171DA #B6A1E7

Accessibility & contrast

On white

6.46
#6B40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6B40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40CE
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40CE#FFFFFF#000000##FFFFFF
##6B40CE1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#4B6482
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6b40ce;
/* rgb */ color: rgb(107, 64, 206);
/* oklch */ color: oklch(50.5% 0.206 291.1);
Tailwind
colors: {
  custom: {
    50: '#9e78de',
    500: '#6b40ce',
    950: '#000000',
  },
}
SCSS
$custom: #6b40ce;
$custom-light: #9e78de;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40ce",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 258.169,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50515,
    "c": 0.20591,
    "h": 291.1
  },
  "luminance": 0.11249
}

Semantic roles & 50–950 ramp

primary
#6B40CE
secondary
#C1D496
accent
#E245B3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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