#6B40CB#6B40CB

#6B40CB is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.202 H 291.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#6B40CB
RGBrgb(107, 64, 203)
HSLhsl(259, 57%, 52%)
HSVhsv(259, 68%, 80%)
CMYKcmyk(47.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(39.75, 50.35, -65.67)
CIE-LCHlch(39.75, 82.75, 307.48°)
OKLaboklab(50.27% 0.0746 -0.1882)
OKLCHoklch(50.27% 0.202 291.6)
XYZxyz(18.6733, 11.1037, 57.6477)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40CB #A0CB40
analogous
#405BCB #6B40CB #B140CB
triadic
#6B40CB #CB6B40 #40CB6B
tetradic
#6B40CB #CB405B #A0CB40 #40CBB1
square
#6B40CB #CB405B #A0CB40 #40CBB1
split-complementary
#6B40CB #CBB140 #5BCB40
monochromatic
#391F72 #502CA2 #6B40CB #9070D8 #B6A0E5

Accessibility & contrast

On white

6.52
#6B40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6B40CB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40CB#FFFFFF#000000##FFFFFF
##6B40CB1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#4D6380
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6b40cb;
/* rgb */ color: rgb(107, 64, 203);
/* oklch */ color: oklch(50.3% 0.202 291.6);
Tailwind
colors: {
  custom: {
    50: '#9d78dc',
    500: '#6b40cb',
    950: '#000000',
  },
}
SCSS
$custom: #6b40cb;
$custom-light: #9d78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40cb",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 258.561,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50269,
    "c": 0.20242,
    "h": 291.6
  },
  "luminance": 0.11104
}

Semantic roles & 50–950 ramp

primary
#6B40CB
secondary
#BFD295
accent
#E047B1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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