#6A40BB#6A40BB

#6A40BB is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.183 H 294.3°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#6A40BB
RGBrgb(106, 64, 187)
HSLhsl(260, 49%, 49%)
HSVhsv(260, 66%, 73%)
CMYKcmyk(43.3%, 65.8%, 0%, 26.7%)
CIE-LABlab(38.41, 45.78, -58.53)
CIE-LCHlch(38.41, 74.30, 308.03°)
OKLaboklab(48.89% 0.0755 -0.1672)
OKLCHoklch(48.89% 0.183 294.3)
XYZxyz(16.7445, 10.3184, 48.1135)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40BB #91BB40
analogous
#4054BB #6A40BB #A840BB
triadic
#6A40BB #BB6A40 #40BB6A
tetradic
#6A40BB #BB4054 #91BB40 #40BBA8
square
#6A40BB #BB4054 #91BB40 #40BBA8
split-complementary
#6A40BB #BBA840 #54BB40
monochromatic
#362160 #50308D #6A40BB #8D6CCD #B099DC

Accessibility & contrast

On white

6.85
#6A40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6A40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40BB
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40BB#FFFFFF#000000##FFFFFF
##6A40BB1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#545D78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6a40bb;
/* rgb */ color: rgb(106, 64, 187);
/* oklch */ color: oklch(48.9% 0.183 294.3);
Tailwind
colors: {
  custom: {
    50: '#9b77d0',
    500: '#6a40bb',
    950: '#000000',
  },
}
SCSS
$custom: #6a40bb;
$custom-light: #9b77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40bb",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 260.488,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48889,
    "c": 0.18345,
    "h": 294.3
  },
  "luminance": 0.10319
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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