#6A40BC#6A40BC

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

Color values

HEX#6A40BC
RGBrgb(106, 64, 188)
HSLhsl(260, 49%, 49%)
HSVhsv(260, 66%, 74%)
CMYKcmyk(43.6%, 66%, 0%, 26.3%)
CIE-LABlab(38.48, 46.05, -58.99)
CIE-LCHlch(38.48, 74.84, 307.98°)
OKLaboklab(48.97% 0.0753 -0.1686)
OKLCHoklch(48.97% 0.185 294.1)
XYZxyz(16.8519, 10.3614, 48.6793)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40BC #92BC40
analogous
#4054BC #6A40BC #A840BC
triadic
#6A40BC #BC6A40 #40BC6A
tetradic
#6A40BC #BC4054 #92BC40 #40BCA8
square
#6A40BC #BC4054 #92BC40 #40BCA8
split-complementary
#6A40BC #BCA840 #54BC40
monochromatic
#372161 #50308E #6A40BC #8D6CCD #B09ADD

Accessibility & contrast

On white

6.84
#6A40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6A40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40BC
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40BC#FFFFFF#000000##FFFFFF
##6A40BC1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a40bc;
/* rgb */ color: rgb(106, 64, 188);
/* oklch */ color: oklch(49.0% 0.185 294.1);
Tailwind
colors: {
  custom: {
    50: '#9b77d1',
    500: '#6a40bc',
    950: '#000000',
  },
}
SCSS
$custom: #6a40bc;
$custom-light: #9b77d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40bc",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 260.323,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48967,
    "c": 0.18465,
    "h": 294.1
  },
  "luminance": 0.10362
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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