#6040CC#6040CC

#6040CC is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.204 H 286.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#6040CC
RGBrgb(96, 64, 204)
HSLhsl(254, 58%, 53%)
HSVhsv(254, 69%, 80%)
CMYKcmyk(52.9%, 68.6%, 0%, 20%)
CIE-LABlab(38.75, 48.76, -67.94)
CIE-LCHlch(38.75, 83.63, 305.67°)
OKLaboklab(49.32% 0.059 -0.1952)
OKLCHoklch(49.32% 0.204 286.8)
XYZxyz(17.5531, 10.5123, 58.2192)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040CC #ACCC40
analogous
#4066CC #6040CC #A640CC
triadic
#6040CC #CC6040 #40CC60
tetradic
#6040CC #CC4066 #ACCC40 #40CCA6
square
#6040CC #CC4066 #ACCC40 #40CCA6
split-complementary
#6040CC #CCA640 #66CC40
monochromatic
#321F73 #472CA3 #6040CC #8870D9 #B0A1E6

Accessibility & contrast

On white

6.77
#6040CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6040CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040CC
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040CC#FFFFFF#000000##FFFFFF
##6040CC1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#356481
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6040cc;
/* rgb */ color: rgb(96, 64, 204);
/* oklch */ color: oklch(49.3% 0.204 286.8);
Tailwind
colors: {
  custom: {
    50: '#9777dd',
    500: '#6040cc',
    950: '#000000',
  },
}
SCSS
$custom: #6040cc;
$custom-light: #9777dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6040cc",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 253.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49315,
    "c": 0.20393,
    "h": 286.8
  },
  "luminance": 0.10513
}

Semantic roles & 50–950 ramp

primary
#6040CC
secondary
#C4D295
accent
#E147BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6040CC

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

Preview Lab → · Contrast checker → · Palette generator →

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