#6040CD#6040CD

#6040CD is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.4% C 0.205 H 286.7°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#6040CD
RGBrgb(96, 64, 205)
HSLhsl(254, 59%, 53%)
HSVhsv(254, 69%, 80%)
CMYKcmyk(53.2%, 68.8%, 0%, 19.6%)
CIE-LABlab(38.83, 49.05, -68.38)
CIE-LCHlch(38.83, 84.15, 305.65°)
OKLaboklab(49.4% 0.0589 -0.1965)
OKLCHoklch(49.4% 0.205 286.7)
XYZxyz(17.6734, 10.5604, 58.8529)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040CD #ADCD40
analogous
#4066CD #6040CD #A640CD
triadic
#6040CD #CD6040 #40CD60
tetradic
#6040CD #CD4066 #ADCD40 #40CDA6
square
#6040CD #CD4066 #ADCD40 #40CDA6
split-complementary
#6040CD #CDA640 #66CD40
monochromatic
#321E74 #472BA5 #6040CD #8871DA #B1A1E6

Accessibility & contrast

On white

6.75
#6040CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6040CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040CD
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040CD#FFFFFF#000000##FFFFFF
##6040CD1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#346482
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6040cd;
/* rgb */ color: rgb(96, 64, 205);
/* oklch */ color: oklch(49.4% 0.205 286.7);
Tailwind
colors: {
  custom: {
    50: '#9777dd',
    500: '#6040cd',
    950: '#000000',
  },
}
SCSS
$custom: #6040cd;
$custom-light: #9777dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6040cd",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 253.617,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.494,
    "c": 0.20513,
    "h": 286.7
  },
  "luminance": 0.10561
}

Semantic roles & 50–950 ramp

primary
#6040CD
secondary
#C5D396
accent
#E246BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6040CD

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

Preview Lab → · Contrast checker → · Palette generator →

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