#6040BA#6040BA

#6040BA is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.182 H 289.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#6040BA
RGBrgb(96, 64, 186)
HSLhsl(256, 49%, 49%)
HSVhsv(256, 66%, 73%)
CMYKcmyk(48.4%, 65.6%, 0%, 27.1%)
CIE-LABlab(37.30, 43.55, -59.80)
CIE-LCHlch(37.30, 73.98, 306.07°)
OKLaboklab(47.82% 0.0616 -0.1713)
OKLCHoklch(47.82% 0.182 289.8)
XYZxyz(15.5177, 9.6981, 47.4992)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040BA #9ABA40
analogous
#405DBA #6040BA #9D40BA
triadic
#6040BA #BA6040 #40BA60
tetradic
#6040BA #BA405D #9ABA40 #40BA9D
square
#6040BA #BA405D #9ABA40 #40BA9D
split-complementary
#6040BA #BA9D40 #5DBA40
monochromatic
#31215F #49308C #6040BA #856BCC #AA99DC

Accessibility & contrast

On white

7.14
#6040BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#6040BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6040BA
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040BA#FFFFFF#000000##FFFFFF
##6040BA1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#425E77
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6040ba;
/* rgb */ color: rgb(96, 64, 186);
/* oklch */ color: oklch(47.8% 0.182 289.8);
Tailwind
colors: {
  custom: {
    50: '#9577d0',
    500: '#6040ba',
    950: '#000000',
  },
}
SCSS
$custom: #6040ba;
$custom-light: #9577d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6040ba",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 255.738,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4782,
    "c": 0.18204,
    "h": 289.8
  },
  "luminance": 0.09699
}

Semantic roles & 50–950 ramp

primary
#6040BA
secondary
#B9C88E
accent
#D84FB4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6040BA

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

Preview Lab → · Contrast checker → · Palette generator →

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