#6C40BA#6C40BA

#6C40BA is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.182 H 295.4°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#6C40BA
RGBrgb(108, 64, 186)
HSLhsl(262, 49%, 49%)
HSVhsv(262, 66%, 73%)
CMYKcmyk(41.9%, 65.6%, 0%, 27.1%)
CIE-LABlab(38.55, 45.91, -57.70)
CIE-LCHlch(38.55, 73.73, 308.51°)
OKLaboklab(49.02% 0.0784 -0.1647)
OKLCHoklch(49.02% 0.182 295.4)
XYZxyz(16.8783, 10.3997, 47.5629)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40BA #8EBA40
analogous
#4051BA #6C40BA #A940BA
triadic
#6C40BA #BA6C40 #40BA6C
tetradic
#6C40BA #BA4051 #8EBA40 #40BAA9
square
#6C40BA #BA4051 #8EBA40 #40BAA9
split-complementary
#6C40BA #BAA940 #51BA40
monochromatic
#37215F #52308C #6C40BA #8E6BCC #B199DC

Accessibility & contrast

On white

6.82
#6C40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6C40BA
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40BA#FFFFFF#000000##FFFFFF
##6C40BA1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#585D77
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6c40ba;
/* rgb */ color: rgb(108, 64, 186);
/* oklch */ color: oklch(49.0% 0.182 295.4);
Tailwind
colors: {
  custom: {
    50: '#9c77d0',
    500: '#6c40ba',
    950: '#000000',
  },
}
SCSS
$custom: #6c40ba;
$custom-light: #9c77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40ba",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 261.639,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49019,
    "c": 0.18241,
    "h": 295.4
  },
  "luminance": 0.104
}

Semantic roles & 50–950 ramp

primary
#6C40BA
secondary
#B3C88E
accent
#D84FA7
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6C40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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