#6040CE#6040CE

#6040CE is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.5% C 0.206 H 286.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#6040CE
RGBrgb(96, 64, 206)
HSLhsl(254, 59%, 53%)
HSVhsv(254, 69%, 81%)
CMYKcmyk(53.4%, 68.9%, 0%, 19.2%)
CIE-LABlab(38.91, 49.34, -68.82)
CIE-LCHlch(38.91, 84.68, 305.64°)
OKLaboklab(49.49% 0.0587 -0.1978)
OKLCHoklch(49.49% 0.206 286.5)
XYZxyz(17.7945, 10.6089, 59.4906)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040CE #AECE40
analogous
#4067CE #6040CE #A740CE
triadic
#6040CE #CE6040 #40CE60
tetradic
#6040CE #CE4067 #AECE40 #40CEA7
square
#6040CE #CE4067 #AECE40 #40CEA7
split-complementary
#6040CE #CEA740 #67CE40
monochromatic
#321E75 #462BA6 #6040CE #8971DA #B1A1E7

Accessibility & contrast

On white

6.73
#6040CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6040CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040CE
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040CE#FFFFFF#000000##FFFFFF
##6040CE1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#336582
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6040ce;
/* rgb */ color: rgb(96, 64, 206);
/* oklch */ color: oklch(49.5% 0.206 286.5);
Tailwind
colors: {
  custom: {
    50: '#9777de',
    500: '#6040ce',
    950: '#000000',
  },
}
SCSS
$custom: #6040ce;
$custom-light: #9777de;
$custom-dark: #000000;
JSON
{
  "hex": "#6040ce",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 253.521,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49486,
    "c": 0.20633,
    "h": 286.5
  },
  "luminance": 0.1061
}

Semantic roles & 50–950 ramp

primary
#6040CE
secondary
#C6D496
accent
#E245BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6040CE

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

Preview Lab → · Contrast checker → · Palette generator →

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