#6040BB#6040BB

#6040BB is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.9% C 0.183 H 289.6°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#6040BB
RGBrgb(96, 64, 187)
HSLhsl(256, 49%, 49%)
HSVhsv(256, 66%, 73%)
CMYKcmyk(48.7%, 65.8%, 0%, 26.7%)
CIE-LABlab(37.37, 43.84, -60.26)
CIE-LCHlch(37.37, 74.52, 306.04°)
OKLaboklab(47.9% 0.0615 -0.1726)
OKLCHoklch(47.9% 0.183 289.6)
XYZxyz(15.6243, 9.7408, 48.0610)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040BB #9BBB40
analogous
#405EBB #6040BB #9E40BB
triadic
#6040BB #BB6040 #40BB60
tetradic
#6040BB #BB405E #9BBB40 #40BB9E
square
#6040BB #BB405E #9BBB40 #40BB9E
split-complementary
#6040BB #BB9E40 #5EBB40
monochromatic
#312160 #49308D #6040BB #856CCD #AB99DC

Accessibility & contrast

On white

7.12
#6040BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6040BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6040BB
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040BB#FFFFFF#000000##FFFFFF
##6040BB1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#425E78
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6040bb;
/* rgb */ color: rgb(96, 64, 187);
/* oklch */ color: oklch(47.9% 0.183 289.6);
Tailwind
colors: {
  custom: {
    50: '#9577d0',
    500: '#6040bb',
    950: '#000000',
  },
}
SCSS
$custom: #6040bb;
$custom-light: #9577d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6040bb",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 255.61,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47901,
    "c": 0.18327,
    "h": 289.6
  },
  "luminance": 0.09741
}

Semantic roles & 50–950 ramp

primary
#6040BB
secondary
#B9C88F
accent
#D94FB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6040BB

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

Preview Lab → · Contrast checker → · Palette generator →

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