#6B40CF#6B40CF

#6B40CF is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.207 H 290.9°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#6B40CF
RGBrgb(107, 64, 207)
HSLhsl(258, 60%, 53%)
HSVhsv(258, 69%, 81%)
CMYKcmyk(48.3%, 69.1%, 0%, 18.8%)
CIE-LABlab(40.08, 51.44, -67.46)
CIE-LCHlch(40.08, 84.84, 307.33°)
OKLaboklab(50.6% 0.0739 -0.1934)
OKLCHoklch(50.6% 0.207 290.9)
XYZxyz(19.1561, 11.2969, 60.1906)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40CF #A4CF40
analogous
#405CCF #6B40CF #B240CF
triadic
#6B40CF #CF6B40 #40CF6B
tetradic
#6B40CF #CF405C #A4CF40 #40CFB2
square
#6B40CF #CF405C #A4CF40 #40CFB2
split-complementary
#6B40CF #CFB240 #5CCF40
monochromatic
#391E77 #502AA8 #6B40CF #9171DB #B7A2E8

Accessibility & contrast

On white

6.44
#6B40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#6B40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40CF
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40CF#FFFFFF#000000##FFFFFF
##6B40CF1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#4A6483
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6b40cf;
/* rgb */ color: rgb(107, 64, 207);
/* oklch */ color: oklch(50.6% 0.207 290.9);
Tailwind
colors: {
  custom: {
    50: '#9e78df',
    500: '#6b40cf',
    950: '#000000',
  },
}
SCSS
$custom: #6b40cf;
$custom-light: #9e78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40cf",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 258.042,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50598,
    "c": 0.20708,
    "h": 290.9
  },
  "luminance": 0.11298
}

Semantic roles & 50–950 ramp

primary
#6B40CF
secondary
#C2D497
accent
#E345B3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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