#6B40D2#6B40D2

#6B40D2 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.211 H 290.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#6B40D2
RGBrgb(107, 64, 210)
HSLhsl(258, 62%, 54%)
HSVhsv(258, 70%, 82%)
CMYKcmyk(49%, 69.5%, 0%, 17.6%)
CIE-LABlab(40.32, 52.27, -68.79)
CIE-LCHlch(40.32, 86.40, 307.23°)
OKLaboklab(50.85% 0.0734 -0.1973)
OKLCHoklch(50.85% 0.211 290.4)
XYZxyz(19.5263, 11.4450, 62.1405)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40D2 #A7D240
analogous
#405ED2 #6B40D2 #B440D2
triadic
#6B40D2 #D26B40 #40D26B
tetradic
#6B40D2 #D2405E #A7D240 #40D2B4
square
#6B40D2 #D2405E #A7D240 #40D2B4
split-complementary
#6B40D2 #D2B440 #5ED240
monochromatic
#391D7B #4F29AC #6B40D2 #9172DE #B8A3E9

Accessibility & contrast

On white

6.38
#6B40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6B40D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40D2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40D2#FFFFFF#000000##FFFFFF
##6B40D21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#486584
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6b40d2;
/* rgb */ color: rgb(107, 64, 210);
/* oklch */ color: oklch(50.8% 0.211 290.4);
Tailwind
colors: {
  custom: {
    50: '#9e78e1',
    500: '#6b40d2',
    950: '#000000',
  },
}
SCSS
$custom: #6b40d2;
$custom-light: #9e78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40d2",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 257.671,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50848,
    "c": 0.21054,
    "h": 290.4
  },
  "luminance": 0.11446
}

Semantic roles & 50–950 ramp

primary
#6B40D2
secondary
#C4D698
accent
#E543B5
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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