#6C40B2#6C40B2

#6C40B2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.4% C 0.173 H 297.3°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#6C40B2
RGBrgb(108, 64, 178)
HSLhsl(263, 47%, 47%)
HSVhsv(263, 64%, 70%)
CMYKcmyk(39.3%, 64%, 0%, 30.2%)
CIE-LABlab(37.97, 43.76, -53.93)
CIE-LCHlch(37.97, 69.45, 309.06°)
OKLaboklab(48.41% 0.0792 -0.1536)
OKLCHoklch(48.41% 0.173 297.3)
XYZxyz(16.0516, 10.0690, 43.2087)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40B2 #86B240
analogous
#404DB2 #6C40B2 #A540B2
triadic
#6C40B2 #B26C40 #40B26C
tetradic
#6C40B2 #B2404D #86B240 #40B2A5
square
#6C40B2 #B2404D #86B240 #40B2A5
split-complementary
#6C40B2 #B2A540 #4DB240
monochromatic
#352058 #513085 #6C40B2 #8C67C8 #AE94D8

Accessibility & contrast

On white

6.97
#6C40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6C40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40B2
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40B2#FFFFFF#000000##FFFFFF
##6C40B21.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#5B5A73
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6c40b2;
/* rgb */ color: rgb(108, 64, 178);
/* oklch */ color: oklch(48.4% 0.173 297.3);
Tailwind
colors: {
  custom: {
    50: '#9b77ca',
    500: '#6c40b2',
    950: '#000000',
  },
}
SCSS
$custom: #6c40b2;
$custom-light: #9b77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40b2",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 263.158,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48412,
    "c": 0.17283,
    "h": 297.3
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#6C40B2
secondary
#AEC48A
accent
#D751A3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0913
muted
#7E7B82

Preview Lab

Preview with #6C40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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