#6B40CC#6B40CC

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

Color values

HEX#6B40CC
RGBrgb(107, 64, 204)
HSLhsl(258, 58%, 53%)
HSVhsv(258, 69%, 80%)
CMYKcmyk(47.5%, 68.6%, 0%, 20%)
CIE-LABlab(39.83, 50.62, -66.12)
CIE-LCHlch(39.83, 83.27, 307.44°)
OKLaboklab(50.35% 0.0744 -0.1895)
OKLCHoklch(50.35% 0.204 291.4)
XYZxyz(18.7928, 11.1515, 58.2773)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40CC #A1CC40
analogous
#405BCC #6B40CC #B140CC
triadic
#6B40CC #CC6B40 #40CC6B
tetradic
#6B40CC #CC405B #A1CC40 #40CCB1
square
#6B40CC #CC405B #A1CC40 #40CCB1
split-complementary
#6B40CC #CCB140 #5BCC40
monochromatic
#391F73 #502CA3 #6B40CC #9070D9 #B6A1E6

Accessibility & contrast

On white

6.50
#6B40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6B40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40CC
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40CC#FFFFFF#000000##FFFFFF
##6B40CC1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#4C6381
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6b40cc;
/* rgb */ color: rgb(107, 64, 204);
/* oklch */ color: oklch(50.4% 0.204 291.4);
Tailwind
colors: {
  custom: {
    50: '#9e78dd',
    500: '#6b40cc',
    950: '#000000',
  },
}
SCSS
$custom: #6b40cc;
$custom-light: #9e78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40cc",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 258.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50351,
    "c": 0.20359,
    "h": 291.4
  },
  "luminance": 0.11152
}

Semantic roles & 50–950 ramp

primary
#6B40CC
secondary
#C0D295
accent
#E147B2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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