#6A40BF#6A40BF

#6A40BF is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.2% C 0.188 H 293.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#6A40BF
RGBrgb(106, 64, 191)
HSLhsl(260, 50%, 50%)
HSVhsv(260, 66%, 75%)
CMYKcmyk(44.5%, 66.5%, 0%, 25.1%)
CIE-LABlab(38.71, 46.87, -60.38)
CIE-LCHlch(38.71, 76.44, 307.82°)
OKLaboklab(49.2% 0.075 -0.1727)
OKLCHoklch(49.2% 0.188 293.5)
XYZxyz(17.1787, 10.4921, 50.4002)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A40BF #95BF40
analogous
#4055BF #6A40BF #AA40BF
triadic
#6A40BF #BF6A40 #40BF6A
tetradic
#6A40BF #BF4055 #95BF40 #40BFAA
square
#6A40BF #BF4055 #95BF40 #40BFAA
split-complementary
#6A40BF #BFAA40 #55BF40
monochromatic
#372163 #513191 #6A40BF #8E6ECE #B29CDE

Accessibility & contrast

On white

6.78
#6A40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6A40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A40BF
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A40BF#FFFFFF#000000##FFFFFF
##6A40BF1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0059BC
Tritanopia (blue-blind)
#525F7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6a40bf;
/* rgb */ color: rgb(106, 64, 191);
/* oklch */ color: oklch(49.2% 0.188 293.5);
Tailwind
colors: {
  custom: {
    50: '#9b77d3',
    500: '#6a40bf',
    950: '#000000',
  },
}
SCSS
$custom: #6a40bf;
$custom-light: #9b77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a40bf",
  "rgb": {
    "r": 106,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 259.843,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49203,
    "c": 0.18824,
    "h": 293.5
  },
  "luminance": 0.10493
}

Semantic roles & 50–950 ramp

primary
#6A40BF
secondary
#B7CA91
accent
#D94EAB
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6A40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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