#6B40D3#6B40D3

#6B40D3 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.212 H 290.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#6B40D3
RGBrgb(107, 64, 211)
HSLhsl(258, 63%, 54%)
HSVhsv(258, 70%, 83%)
CMYKcmyk(49.3%, 69.7%, 0%, 17.3%)
CIE-LABlab(40.40, 52.55, -69.23)
CIE-LCHlch(40.40, 86.92, 307.20°)
OKLaboklab(50.93% 0.0732 -0.1986)
OKLCHoklch(50.93% 0.212 290.2)
XYZxyz(19.6513, 11.4949, 62.7987)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40D3 #A8D340
analogous
#405FD3 #6B40D3 #B540D3
triadic
#6B40D3 #D36B40 #40D36B
tetradic
#6B40D3 #D3405F #A8D340 #40D3B5
square
#6B40D3 #D3405F #A8D340 #40D3B5
split-complementary
#6B40D3 #D3B540 #5FD340
monochromatic
#381D7C #4F28AE #6B40D3 #9272DE #B8A3EA

Accessibility & contrast

On white

6.37
#6B40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6B40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40D3
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40D3#FFFFFF#000000##FFFFFF
##6B40D31.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#005CD0
Tritanopia (blue-blind)
#486685
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6b40d3;
/* rgb */ color: rgb(107, 64, 211);
/* oklch */ color: oklch(50.9% 0.212 290.2);
Tailwind
colors: {
  custom: {
    50: '#9e78e2',
    500: '#6b40d3',
    950: '#000000',
  },
}
SCSS
$custom: #6b40d3;
$custom-light: #9e78e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40d3",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 257.551,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50931,
    "c": 0.2117,
    "h": 290.2
  },
  "luminance": 0.11496
}

Semantic roles & 50–950 ramp

primary
#6B40D3
secondary
#C4D798
accent
#E642B6
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #6B40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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