#6040BD#6040BD

#6040BD is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.1% C 0.186 H 289.3°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#6040BD
RGBrgb(96, 64, 189)
HSLhsl(255, 49%, 50%)
HSVhsv(255, 66%, 74%)
CMYKcmyk(49.2%, 66.1%, 0%, 25.9%)
CIE-LABlab(37.53, 44.42, -61.18)
CIE-LCHlch(37.53, 75.60, 305.98°)
OKLaboklab(48.06% 0.0613 -0.1753)
OKLCHoklch(48.06% 0.186 289.3)
XYZxyz(15.8399, 9.8270, 49.1964)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040BD #9DBD40
analogous
#405FBD #6040BD #9F40BD
triadic
#6040BD #BD6040 #40BD60
tetradic
#6040BD #BD405F #9DBD40 #40BD9F
square
#6040BD #BD405F #9DBD40 #40BD9F
split-complementary
#6040BD #BD9F40 #5FBD40
monochromatic
#322162 #49318F #6040BD #856DCD #AB9ADD

Accessibility & contrast

On white

7.08
#6040BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6040BD
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040BD#FFFFFF#000000##FFFFFF
##6040BD1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6040bd;
/* rgb */ color: rgb(96, 64, 189);
/* oklch */ color: oklch(48.1% 0.186 289.3);
Tailwind
colors: {
  custom: {
    50: '#9577d2',
    500: '#6040bd',
    950: '#000000',
  },
}
SCSS
$custom: #6040bd;
$custom-light: #9577d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6040bd",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 255.36,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48063,
    "c": 0.18574,
    "h": 289.3
  },
  "luminance": 0.09828
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6040BD

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

Preview Lab → · Contrast checker → · Palette generator →

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