#6D40BC#6D40BC

#6D40BC is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.3% C 0.185 H 295.5°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#6D40BC
RGBrgb(109, 64, 188)
HSLhsl(262, 49%, 49%)
HSVhsv(262, 66%, 74%)
CMYKcmyk(42%, 66%, 0%, 26.3%)
CIE-LABlab(38.81, 46.65, -58.45)
CIE-LCHlch(38.81, 74.78, 308.59°)
OKLaboklab(49.28% 0.0795 -0.1669)
OKLCHoklch(49.28% 0.185 295.5)
XYZxyz(17.2148, 10.5485, 48.6963)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40BC #8FBC40
analogous
#4051BC #6D40BC #AB40BC
triadic
#6D40BC #BC6D40 #40BC6D
tetradic
#6D40BC #BC4051 #8FBC40 #40BCAB
square
#6D40BC #BC4051 #8FBC40 #40BCAB
split-complementary
#6D40BC #BCAB40 #51BC40
monochromatic
#382161 #53308E #6D40BC #8F6CCD #B29ADD

Accessibility & contrast

On white

6.75
#6D40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6D40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40BC
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40BC#FFFFFF#000000##FFFFFF
##6D40BC1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#585D78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6d40bc;
/* rgb */ color: rgb(109, 64, 188);
/* oklch */ color: oklch(49.3% 0.185 295.5);
Tailwind
colors: {
  custom: {
    50: '#9d78d1',
    500: '#6d40bc',
    950: '#000000',
  },
}
SCSS
$custom: #6d40bc;
$custom-light: #9d78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40bc",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 261.774,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49277,
    "c": 0.18486,
    "h": 295.5
  },
  "luminance": 0.10549
}

Semantic roles & 50–950 ramp

primary
#6D40BC
secondary
#B4C98F
accent
#D94FA7
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6D40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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