#6A40CC#6A40CC

#6A40CC is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.204 H 291.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#6A40CC
RGBrgb(106, 64, 204)
HSLhsl(258, 58%, 53%)
HSVhsv(258, 69%, 80%)
CMYKcmyk(48%, 68.6%, 0%, 20%)
CIE-LABlab(39.73, 50.45, -66.29)
CIE-LCHlch(39.73, 83.30, 307.27°)
OKLaboklab(50.25% 0.073 -0.19)
OKLCHoklch(50.25% 0.204 291)
XYZxyz(18.6733, 11.0899, 58.2717)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40CC #A2CC40
analogous
#405CCC #6A40CC #B040CC
triadic
#6A40CC #CC6A40 #40CC6A
tetradic
#6A40CC #CC405C #A2CC40 #40CCB0
square
#6A40CC #CC405C #A2CC40 #40CCB0
split-complementary
#6A40CC #CCB040 #5CCC40
monochromatic
#381F73 #4F2CA3 #6A40CC #9070D9 #B5A1E6

Accessibility & contrast

On white

6.53
#6A40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6A40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40CC
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40CC#FFFFFF#000000##FFFFFF
##6A40CC1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#4A6381
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6a40cc;
/* rgb */ color: rgb(106, 64, 204);
/* oklch */ color: oklch(50.3% 0.204 291.0);
Tailwind
colors: {
  custom: {
    50: '#9d78dd',
    500: '#6a40cc',
    950: '#000000',
  },
}
SCSS
$custom: #6a40cc;
$custom-light: #9d78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40cc",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 258,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50253,
    "c": 0.20358,
    "h": 291
  },
  "luminance": 0.11091
}

Semantic roles & 50–950 ramp

primary
#6A40CC
secondary
#C0D295
accent
#E147B3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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