#6B40BC#6B40BC

#6B40BC is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.1% C 0.185 H 294.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#6B40BC
RGBrgb(107, 64, 188)
HSLhsl(261, 49%, 49%)
HSVhsv(261, 66%, 74%)
CMYKcmyk(43.1%, 66%, 0%, 26.3%)
CIE-LABlab(38.59, 46.25, -58.81)
CIE-LCHlch(38.59, 74.82, 308.18°)
OKLaboklab(49.07% 0.0767 -0.168)
OKLCHoklch(49.07% 0.185 294.5)
XYZxyz(16.9715, 10.4230, 48.6849)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40BC #91BC40
analogous
#4053BC #6B40BC #A940BC
triadic
#6B40BC #BC6B40 #40BC6B
tetradic
#6B40BC #BC4053 #91BC40 #40BCA9
square
#6B40BC #BC4053 #91BC40 #40BCA9
split-complementary
#6B40BC #BCA940 #53BC40
monochromatic
#372161 #51308E #6B40BC #8E6CCD #B19ADD

Accessibility & contrast

On white

6.81
#6B40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6B40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40BC
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40BC#FFFFFF#000000##FFFFFF
##6B40BC1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#555D78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6b40bc;
/* rgb */ color: rgb(107, 64, 188);
/* oklch */ color: oklch(49.1% 0.185 294.5);
Tailwind
colors: {
  custom: {
    50: '#9c77d1',
    500: '#6b40bc',
    950: '#000000',
  },
}
SCSS
$custom: #6b40bc;
$custom-light: #9c77d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40bc",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 260.806,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4907,
    "c": 0.18472,
    "h": 294.5
  },
  "luminance": 0.10423
}

Semantic roles & 50–950 ramp

primary
#6B40BC
secondary
#B5C98F
accent
#D94FA9
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6B40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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