#6A40A2#6A40A2

#6A40A2 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.0% C 0.153 H 300.4°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#6A40A2
RGBrgb(106, 64, 162)
HSLhsl(266, 43%, 44%)
HSVhsv(266, 60%, 64%)
CMYKcmyk(34.6%, 60.5%, 0%, 36.5%)
CIE-LABlab(36.63, 39.06, -46.56)
CIE-LCHlch(36.63, 60.77, 310.00°)
OKLaboklab(47.04% 0.0773 -0.132)
OKLCHoklch(47.04% 0.153 300.4)
XYZxyz(14.2973, 9.3395, 35.2249)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40A2 #78A240
analogous
#4047A2 #6A40A2 #9B40A2
triadic
#6A40A2 #A26A40 #40A26A
tetradic
#6A40A2 #A24047 #78A240 #40A29B
square
#6A40A2 #A24047 #78A240 #40A29B
split-complementary
#6A40A2 #A29B40 #47A240
monochromatic
#311D4A #4D2F76 #6A40A2 #895FC0 #A98BD1

Accessibility & contrast

On white

7.32
#6A40A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6A40A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A40A2
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40A2#FFFFFF#000000##FFFFFF
##6A40A21.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0656A5
Deuteranopia (green-blind)
#2056A0
Tritanopia (blue-blind)
#5E556B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6a40a2;
/* rgb */ color: rgb(106, 64, 162);
/* oklch */ color: oklch(47.0% 0.153 300.4);
Tailwind
colors: {
  custom: {
    50: '#9877be',
    500: '#6a40a2',
    950: '#000000',
  },
}
SCSS
$custom: #6a40a2;
$custom-light: #9877be;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40a2",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 265.714,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47036,
    "c": 0.153,
    "h": 300.4
  },
  "luminance": 0.0934
}

Semantic roles & 50–950 ramp

primary
#6A40A2
secondary
#A3BC82
accent
#D3559D
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6A40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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