#6D40B4#6D40B4

#6D40B4 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.175 H 297.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#6D40B4
RGBrgb(109, 64, 180)
HSLhsl(263, 48%, 48%)
HSVhsv(263, 64%, 71%)
CMYKcmyk(39.4%, 64.4%, 0%, 29.4%)
CIE-LABlab(38.22, 44.51, -54.69)
CIE-LCHlch(38.22, 70.51, 309.14°)
OKLaboklab(48.67% 0.0804 -0.1558)
OKLCHoklch(48.67% 0.175 297.3)
XYZxyz(16.3762, 10.2130, 44.2797)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40B4 #87B440
analogous
#404DB4 #6D40B4 #A740B4
triadic
#6D40B4 #B46D40 #40B46D
tetradic
#6D40B4 #B4404D #87B440 #40B4A7
square
#6D40B4 #B4404D #87B440 #40B4A7
split-complementary
#6D40B4 #B4A740 #4DB440
monochromatic
#36205A #523087 #6D40B4 #8E68C9 #B095D9

Accessibility & contrast

On white

6.90
#6D40B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6D40B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40B4
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40B4#FFFFFF#000000##FFFFFF
##6D40B41.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#5C5A74
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6d40b4;
/* rgb */ color: rgb(109, 64, 180);
/* oklch */ color: oklch(48.7% 0.175 297.3);
Tailwind
colors: {
  custom: {
    50: '#9c77cb',
    500: '#6d40b4',
    950: '#000000',
  },
}
SCSS
$custom: #6d40b4;
$custom-light: #9c77cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40b4",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 263.276,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48668,
    "c": 0.17534,
    "h": 297.3
  },
  "luminance": 0.10213
}

Semantic roles & 50–950 ramp

primary
#6D40B4
secondary
#AEC58B
accent
#D751A3
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #6D40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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