#6A40BE#6A40BE

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

Color values

HEX#6A40BE
RGBrgb(106, 64, 190)
HSLhsl(260, 50%, 50%)
HSVhsv(260, 66%, 75%)
CMYKcmyk(44.2%, 66.3%, 0%, 25.5%)
CIE-LABlab(38.64, 46.60, -59.92)
CIE-LCHlch(38.64, 75.91, 307.87°)
OKLaboklab(49.12% 0.0751 -0.1713)
OKLCHoklch(49.12% 0.187 293.7)
XYZxyz(17.0690, 10.4482, 49.8226)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40BE #94BE40
analogous
#4055BE #6A40BE #A940BE
triadic
#6A40BE #BE6A40 #40BE6A
tetradic
#6A40BE #BE4055 #94BE40 #40BEA9
square
#6A40BE #BE4055 #94BE40 #40BEA9
split-complementary
#6A40BE #BEA940 #55BE40
monochromatic
#372162 #503190 #6A40BE #8D6DCE #B19BDD

Accessibility & contrast

On white

6.80
#6A40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6A40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40BE
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40BE#FFFFFF#000000##FFFFFF
##6A40BE1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC2
Deuteranopia (green-blind)
#0059BB
Tritanopia (blue-blind)
#525E79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6a40be;
/* rgb */ color: rgb(106, 64, 190);
/* oklch */ color: oklch(49.1% 0.187 293.7);
Tailwind
colors: {
  custom: {
    50: '#9b77d2',
    500: '#6a40be',
    950: '#000000',
  },
}
SCSS
$custom: #6a40be;
$custom-light: #9b77d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40be",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 260,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49124,
    "c": 0.18704,
    "h": 293.7
  },
  "luminance": 0.10449
}

Semantic roles & 50–950 ramp

primary
#6A40BE
secondary
#B6C990
accent
#D94FAB
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6A40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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