#6040BC#6040BC

#6040BC is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.0% C 0.184 H 289.4°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#6040BC
RGBrgb(96, 64, 188)
HSLhsl(255, 49%, 49%)
HSVhsv(255, 66%, 74%)
CMYKcmyk(48.9%, 66%, 0%, 26.3%)
CIE-LABlab(37.45, 44.13, -60.72)
CIE-LCHlch(37.45, 75.06, 306.01°)
OKLaboklab(47.98% 0.0614 -0.174)
OKLCHoklch(47.98% 0.185 289.4)
XYZxyz(15.7318, 9.7838, 48.6267)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040BC #9CBC40
analogous
#405EBC #6040BC #9E40BC
triadic
#6040BC #BC6040 #40BC60
tetradic
#6040BC #BC405E #9CBC40 #40BC9E
square
#6040BC #BC405E #9CBC40 #40BC9E
split-complementary
#6040BC #BC9E40 #5EBC40
monochromatic
#312161 #49308E #6040BC #856CCD #AB9ADD

Accessibility & contrast

On white

7.10
#6040BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#6040BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6040BC
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040BC#FFFFFF#000000##FFFFFF
##6040BC1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6040bc;
/* rgb */ color: rgb(96, 64, 188);
/* oklch */ color: oklch(48.0% 0.184 289.4);
Tailwind
colors: {
  custom: {
    50: '#9577d1',
    500: '#6040bc',
    950: '#000000',
  },
}
SCSS
$custom: #6040bc;
$custom-light: #9577d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6040bc",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 255.484,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47982,
    "c": 0.1845,
    "h": 289.4
  },
  "luminance": 0.09784
}

Semantic roles & 50–950 ramp

primary
#6040BC
secondary
#BAC98F
accent
#D94FB5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6040BC

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

Preview Lab → · Contrast checker → · Palette generator →

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