#6B40C8#6B40C8

#6B40C8 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.199 H 292.2°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#6B40C8
RGBrgb(107, 64, 200)
HSLhsl(259, 55%, 52%)
HSVhsv(259, 68%, 78%)
CMYKcmyk(46.5%, 68%, 0%, 21.6%)
CIE-LABlab(39.52, 49.52, -64.32)
CIE-LCHlch(39.52, 81.17, 307.60°)
OKLaboklab(50.02% 0.0751 -0.1842)
OKLCHoklch(50.02% 0.199 292.2)
XYZxyz(18.3192, 10.9621, 55.7831)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40C8 #9DC840
analogous
#4059C8 #6B40C8 #AF40C8
triadic
#6B40C8 #C86B40 #40C86B
tetradic
#6B40C8 #C84059 #9DC840 #40C8AF
square
#6B40C8 #C84059 #9DC840 #40C8AF
split-complementary
#6B40C8 #C8AF40 #59C840
monochromatic
#38206E #512D9D #6B40C8 #9070D6 #B59FE3

Accessibility & contrast

On white

6.58
#6B40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6B40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40C8
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40C8#FFFFFF#000000##FFFFFF
##6B40C81.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#4F627F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6b40c8;
/* rgb */ color: rgb(107, 64, 200);
/* oklch */ color: oklch(50.0% 0.199 292.2);
Tailwind
colors: {
  custom: {
    50: '#9d78da',
    500: '#6b40c8',
    950: '#000000',
  },
}
SCSS
$custom: #6b40c8;
$custom-light: #9d78da;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40c8",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 258.971,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50024,
    "c": 0.19891,
    "h": 292.2
  },
  "luminance": 0.10963
}

Semantic roles & 50–950 ramp

primary
#6B40C8
secondary
#BDD094
accent
#DF49AF
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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