#6040D1#6040D1

#6040D1 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.7% C 0.210 H 286.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#6040D1
RGBrgb(96, 64, 209)
HSLhsl(253, 61%, 54%)
HSVhsv(253, 69%, 82%)
CMYKcmyk(54.1%, 69.4%, 0%, 18%)
CIE-LABlab(39.17, 50.21, -70.14)
CIE-LCHlch(39.17, 86.26, 305.59°)
OKLaboklab(49.74% 0.0582 -0.2017)
OKLCHoklch(49.74% 0.21 286.1)
XYZxyz(18.1624, 10.7561, 61.4283)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040D1 #B1D140
analogous
#4068D1 #6040D1 #A840D1
triadic
#6040D1 #D16040 #40D160
tetradic
#6040D1 #D14068 #B1D140 #40D1A8
square
#6040D1 #D14068 #B1D140 #40D1A8
split-complementary
#6040D1 #D1A840 #68D140
monochromatic
#321D79 #4629AB #6040D1 #8971DD #B2A3E9

Accessibility & contrast

On white

6.66
#6040D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6040D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040D1
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040D1#FFFFFF#000000##FFFFFF
##6040D11.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D5
Deuteranopia (green-blind)
#0058CE
Tritanopia (blue-blind)
#2F6684
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6040d1;
/* rgb */ color: rgb(96, 64, 209);
/* oklch */ color: oklch(49.7% 0.210 286.1);
Tailwind
colors: {
  custom: {
    50: '#9877e0',
    500: '#6040d1',
    950: '#000000',
  },
}
SCSS
$custom: #6040d1;
$custom-light: #9877e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6040d1",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 253.241,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49744,
    "c": 0.2099,
    "h": 286.1
  },
  "luminance": 0.10757
}

Semantic roles & 50–950 ramp

primary
#6040D1
secondary
#C8D597
accent
#E444C1
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6040D1

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

Preview Lab → · Contrast checker → · Palette generator →

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