#6040D2#6040D2

#6040D2 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.211 H 285.9°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#6040D2
RGBrgb(96, 64, 210)
HSLhsl(253, 62%, 54%)
HSVhsv(253, 70%, 82%)
CMYKcmyk(54.3%, 69.5%, 0%, 17.6%)
CIE-LABlab(39.25, 50.50, -70.58)
CIE-LCHlch(39.25, 86.79, 305.58°)
OKLaboklab(49.83% 0.058 -0.203)
OKLCHoklch(49.83% 0.211 285.9)
XYZxyz(18.2866, 10.8057, 62.0824)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040D2 #B2D240
analogous
#4069D2 #6040D2 #A940D2
triadic
#6040D2 #D26040 #40D260
tetradic
#6040D2 #D24069 #B2D240 #40D2A9
square
#6040D2 #D24069 #B2D240 #40D2A9
split-complementary
#6040D2 #D2A940 #69D240
monochromatic
#311D7B #4529AC #6040D2 #8972DE #B2A3E9

Accessibility & contrast

On white

6.64
#6040D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6040D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040D2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040D2#FFFFFF#000000##FFFFFF
##6040D21.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D6
Deuteranopia (green-blind)
#0058CF
Tritanopia (blue-blind)
#2E6684
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6040d2;
/* rgb */ color: rgb(96, 64, 210);
/* oklch */ color: oklch(49.8% 0.211 285.9);
Tailwind
colors: {
  custom: {
    50: '#9877e1',
    500: '#6040d2',
    950: '#000000',
  },
}
SCSS
$custom: #6040d2;
$custom-light: #9877e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6040d2",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 253.151,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49831,
    "c": 0.21108,
    "h": 285.9
  },
  "luminance": 0.10807
}

Semantic roles & 50–950 ramp

primary
#6040D2
secondary
#C8D698
accent
#E543C1
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6040D2

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

Preview Lab → · Contrast checker → · Palette generator →

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