#6A40CA#6A40CA

#6A40CA is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.1% C 0.201 H 291.4°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#6A40CA
RGBrgb(106, 64, 202)
HSLhsl(258, 57%, 52%)
HSVhsv(258, 68%, 79%)
CMYKcmyk(47.5%, 68.3%, 0%, 20.8%)
CIE-LABlab(39.57, 49.89, -65.39)
CIE-LCHlch(39.57, 82.25, 307.34°)
OKLaboklab(50.09% 0.0733 -0.1874)
OKLCHoklch(50.09% 0.201 291.4)
XYZxyz(18.4349, 10.9946, 57.0165)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40CA #A0CA40
analogous
#405BCA #6A40CA #AF40CA
triadic
#6A40CA #CA6A40 #40CA6A
tetradic
#6A40CA #CA405B #A0CA40 #40CAAF
square
#6A40CA #CA405B #A0CA40 #40CAAF
split-complementary
#6A40CA #CAAF40 #5BCA40
monochromatic
#381F70 #502CA0 #6A40CA #8F70D7 #B5A0E5

Accessibility & contrast

On white

6.56
#6A40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6A40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40CA
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40CA#FFFFFF#000000##FFFFFF
##6A40CA1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#4C6380
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6a40ca;
/* rgb */ color: rgb(106, 64, 202);
/* oklch */ color: oklch(50.1% 0.201 291.4);
Tailwind
colors: {
  custom: {
    50: '#9d78db',
    500: '#6a40ca',
    950: '#000000',
  },
}
SCSS
$custom: #6a40ca;
$custom-light: #9d78db;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40ca",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 258.261,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50088,
    "c": 0.20124,
    "h": 291.4
  },
  "luminance": 0.10995
}

Semantic roles & 50–950 ramp

primary
#6A40CA
secondary
#BFD195
accent
#E048B2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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