#6A40C8#6A40C8

#6A40C8 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.9% C 0.199 H 291.7°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#6A40C8
RGBrgb(106, 64, 200)
HSLhsl(259, 55%, 52%)
HSVhsv(259, 68%, 78%)
CMYKcmyk(47%, 68%, 0%, 21.6%)
CIE-LABlab(39.41, 49.34, -64.49)
CIE-LCHlch(39.41, 81.20, 307.42°)
OKLaboklab(49.93% 0.0736 -0.1847)
OKLCHoklch(49.93% 0.199 291.7)
XYZxyz(18.1997, 10.9005, 55.7775)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40C8 #9EC840
analogous
#405AC8 #6A40C8 #AE40C8
triadic
#6A40C8 #C86A40 #40C86A
tetradic
#6A40C8 #C8405A #9EC840 #40C8AE
square
#6A40C8 #C8405A #9EC840 #40C8AE
split-complementary
#6A40C8 #C8AE40 #5AC840
monochromatic
#38206E #502D9D #6A40C8 #8F70D6 #B49FE3

Accessibility & contrast

On white

6.60
#6A40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6A40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40C8
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40C8#FFFFFF#000000##FFFFFF
##6A40C81.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#4D627F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6a40c8;
/* rgb */ color: rgb(106, 64, 200);
/* oklch */ color: oklch(49.9% 0.199 291.7);
Tailwind
colors: {
  custom: {
    50: '#9c78da',
    500: '#6a40c8',
    950: '#000000',
  },
}
SCSS
$custom: #6a40c8;
$custom-light: #9c78da;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40c8",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 258.529,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49925,
    "c": 0.19889,
    "h": 291.7
  },
  "luminance": 0.10901
}

Semantic roles & 50–950 ramp

primary
#6A40C8
secondary
#BDD094
accent
#DF49B0
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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