#6040E1#6040E1

#6040E1 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.2% C 0.229 H 283.9°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#6040E1
RGBrgb(96, 64, 225)
HSLhsl(252, 73%, 57%)
HSVhsv(252, 72%, 88%)
CMYKcmyk(57.3%, 71.6%, 0%, 11.8%)
CIE-LABlab(40.55, 54.83, -77.05)
CIE-LCHlch(40.55, 94.56, 305.44°)
OKLaboklab(51.16% 0.0551 -0.2219)
OKLCHoklch(51.16% 0.229 283.9)
XYZxyz(20.2437, 11.5886, 72.3896)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040E1 #C1E140
analogous
#4071E1 #6040E1 #B040E1
triadic
#6040E1 #E16040 #40E160
tetradic
#6040E1 #E14071 #C1E140 #40E1B0
square
#6040E1 #E14071 #C1E140 #40E1B0
split-complementary
#6040E1 #E1B040 #71E140
monochromatic
#2F1790 #401FC5 #6040E1 #8C75E9 #B8AAF2

Accessibility & contrast

On white

6.33
#6040E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#6040E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040E1
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040E1#FFFFFF#000000##FFFFFF
##6040E11.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E6
Deuteranopia (green-blind)
#005ADE
Tritanopia (blue-blind)
#176C8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6040e1;
/* rgb */ color: rgb(96, 64, 225);
/* oklch */ color: oklch(51.2% 0.229 283.9);
Tailwind
colors: {
  custom: {
    50: '#9a78ec',
    500: '#6040e1',
    950: '#000000',
  },
}
SCSS
$custom: #6040e1;
$custom-light: #9a78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6040e1",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 251.925,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51157,
    "c": 0.22864,
    "h": 283.9
  },
  "luminance": 0.1159
}

Semantic roles & 50–950 ramp

primary
#6040E1
secondary
#D2DF9D
accent
#F038CB
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6040E1

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

Preview Lab → · Contrast checker → · Palette generator →

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