#6040BF#6040BF

#6040BF is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.2% C 0.188 H 288.9°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#6040BF
RGBrgb(96, 64, 191)
HSLhsl(255, 50%, 50%)
HSVhsv(255, 66%, 75%)
CMYKcmyk(49.7%, 66.5%, 0%, 25.1%)
CIE-LABlab(37.69, 45.00, -62.09)
CIE-LCHlch(37.69, 76.68, 305.93°)
OKLaboklab(48.23% 0.061 -0.178)
OKLCHoklch(48.23% 0.188 288.9)
XYZxyz(16.0585, 9.9145, 50.3477)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040BF #9FBF40
analogous
#4060BF #6040BF #9F40BF
triadic
#6040BF #BF6040 #40BF60
tetradic
#6040BF #BF4060 #9FBF40 #40BF9F
square
#6040BF #BF4060 #9FBF40 #40BF9F
split-complementary
#6040BF #BF9F40 #60BF40
monochromatic
#322163 #493191 #6040BF #866ECE #AC9CDE

Accessibility & contrast

On white

7.04
#6040BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6040BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6040BF
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040BF#FFFFFF#000000##FFFFFF
##6040BF1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0055BC
Tritanopia (blue-blind)
#3F5F7A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6040bf;
/* rgb */ color: rgb(96, 64, 191);
/* oklch */ color: oklch(48.2% 0.188 288.9);
Tailwind
colors: {
  custom: {
    50: '#9577d3',
    500: '#6040bf',
    950: '#000000',
  },
}
SCSS
$custom: #6040bf;
$custom-light: #9577d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6040bf",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 255.118,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48226,
    "c": 0.18819,
    "h": 288.9
  },
  "luminance": 0.09915
}

Semantic roles & 50–950 ramp

primary
#6040BF
secondary
#BCCA91
accent
#D94EB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6040BF

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

Preview Lab → · Contrast checker → · Palette generator →

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