#6040BE#6040BE

#6040BE is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.1% C 0.187 H 289.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#6040BE
RGBrgb(96, 64, 190)
HSLhsl(255, 50%, 50%)
HSVhsv(255, 66%, 75%)
CMYKcmyk(49.5%, 66.3%, 0%, 25.5%)
CIE-LABlab(37.61, 44.71, -61.63)
CIE-LCHlch(37.61, 76.14, 305.96°)
OKLaboklab(48.15% 0.0611 -0.1767)
OKLCHoklch(48.15% 0.187 289.1)
XYZxyz(15.9488, 9.8706, 49.7701)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040BE #9EBE40
analogous
#405FBE #6040BE #9F40BE
triadic
#6040BE #BE6040 #40BE60
tetradic
#6040BE #BE405F #9EBE40 #40BE9F
square
#6040BE #BE405F #9EBE40 #40BE9F
split-complementary
#6040BE #BE9F40 #5FBE40
monochromatic
#322162 #493190 #6040BE #866DCE #AC9BDD

Accessibility & contrast

On white

7.06
#6040BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#6040BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6040BE
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040BE#FFFFFF#000000##FFFFFF
##6040BE1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0055BB
Tritanopia (blue-blind)
#405F79
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6040be;
/* rgb */ color: rgb(96, 64, 190);
/* oklch */ color: oklch(48.1% 0.187 289.1);
Tailwind
colors: {
  custom: {
    50: '#9577d3',
    500: '#6040be',
    950: '#000000',
  },
}
SCSS
$custom: #6040be;
$custom-light: #9577d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6040be",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 255.238,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48145,
    "c": 0.18697,
    "h": 289.1
  },
  "luminance": 0.09871
}

Semantic roles & 50–950 ramp

primary
#6040BE
secondary
#BBC990
accent
#D94FB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6040BE

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

Preview Lab → · Contrast checker → · Palette generator →

#6040BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva