#6A40CF#6A40CF

#6A40CF is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.207 H 290.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#6A40CF
RGBrgb(106, 64, 207)
HSLhsl(258, 60%, 53%)
HSVhsv(258, 69%, 81%)
CMYKcmyk(48.8%, 69.1%, 0%, 18.8%)
CIE-LABlab(39.97, 51.27, -67.63)
CIE-LCHlch(39.97, 84.87, 307.17°)
OKLaboklab(50.5% 0.0725 -0.194)
OKLCHoklch(50.5% 0.207 290.5)
XYZxyz(19.0365, 11.2352, 60.1850)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40CF #A5CF40
analogous
#405DCF #6A40CF #B140CF
triadic
#6A40CF #CF6A40 #40CF6A
tetradic
#6A40CF #CF405D #A5CF40 #40CFB1
square
#6A40CF #CF405D #A5CF40 #40CFB1
split-complementary
#6A40CF #CFB140 #5DCF40
monochromatic
#381E77 #4F2AA8 #6A40CF #9071DB #B6A2E8

Accessibility & contrast

On white

6.47
#6A40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6A40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40CF
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40CF#FFFFFF#000000##FFFFFF
##6A40CF1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#486483
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6a40cf;
/* rgb */ color: rgb(106, 64, 207);
/* oklch */ color: oklch(50.5% 0.207 290.5);
Tailwind
colors: {
  custom: {
    50: '#9d78df',
    500: '#6a40cf',
    950: '#000000',
  },
}
SCSS
$custom: #6a40cf;
$custom-light: #9d78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40cf",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 257.622,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50501,
    "c": 0.20707,
    "h": 290.5
  },
  "luminance": 0.11236
}

Semantic roles & 50–950 ramp

primary
#6A40CF
secondary
#C2D497
accent
#E345B5
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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