#6A40CB#6A40CB

#6A40CB is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.2% C 0.202 H 291.2°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#6A40CB
RGBrgb(106, 64, 203)
HSLhsl(258, 57%, 52%)
HSVhsv(258, 68%, 80%)
CMYKcmyk(47.8%, 68.5%, 0%, 20.4%)
CIE-LABlab(39.65, 50.17, -65.84)
CIE-LCHlch(39.65, 82.78, 307.31°)
OKLaboklab(50.17% 0.0732 -0.1887)
OKLCHoklch(50.17% 0.202 291.2)
XYZxyz(18.5537, 11.0421, 57.6421)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40CB #A1CB40
analogous
#405CCB #6A40CB #AF40CB
triadic
#6A40CB #CB6A40 #40CB6A
tetradic
#6A40CB #CB405C #A1CB40 #40CBAF
square
#6A40CB #CB405C #A1CB40 #40CBAF
split-complementary
#6A40CB #CBAF40 #5CCB40
monochromatic
#381F72 #502CA2 #6A40CB #9070D8 #B5A0E5

Accessibility & contrast

On white

6.54
#6A40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6A40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40CB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40CB#FFFFFF#000000##FFFFFF
##6A40CB1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#4B6380
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6a40cb;
/* rgb */ color: rgb(106, 64, 203);
/* oklch */ color: oklch(50.2% 0.202 291.2);
Tailwind
colors: {
  custom: {
    50: '#9d78dc',
    500: '#6a40cb',
    950: '#000000',
  },
}
SCSS
$custom: #6a40cb;
$custom-light: #9d78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40cb",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 258.129,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5017,
    "c": 0.20241,
    "h": 291.2
  },
  "luminance": 0.11043
}

Semantic roles & 50–950 ramp

primary
#6A40CB
secondary
#BFD295
accent
#E047B2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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