#6040CF#6040CF

#6040CF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.6% C 0.208 H 286.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#6040CF
RGBrgb(96, 64, 207)
HSLhsl(253, 60%, 53%)
HSVhsv(253, 69%, 81%)
CMYKcmyk(53.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(39.00, 49.63, -69.27)
CIE-LCHlch(39.00, 85.21, 305.62°)
OKLaboklab(49.57% 0.0585 -0.1991)
OKLCHoklch(49.57% 0.208 286.4)
XYZxyz(17.9164, 10.6576, 60.1325)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040CF #AFCF40
analogous
#4067CF #6040CF #A840CF
triadic
#6040CF #CF6040 #40CF60
tetradic
#6040CF #CF4067 #AFCF40 #40CFA8
square
#6040CF #CF4067 #AFCF40 #40CFA8
split-complementary
#6040CF #CFA840 #67CF40
monochromatic
#321E77 #462AA8 #6040CF #8971DB #B1A2E8

Accessibility & contrast

On white

6.71
#6040CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6040CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040CF
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040CF#FFFFFF#000000##FFFFFF
##6040CF1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0058CC
Tritanopia (blue-blind)
#326583
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6040cf;
/* rgb */ color: rgb(96, 64, 207);
/* oklch */ color: oklch(49.6% 0.208 286.4);
Tailwind
colors: {
  custom: {
    50: '#9877df',
    500: '#6040cf',
    950: '#000000',
  },
}
SCSS
$custom: #6040cf;
$custom-light: #9877df;
$custom-dark: #000000;
JSON
{
  "hex": "#6040cf",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 253.427,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49572,
    "c": 0.20752,
    "h": 286.4
  },
  "luminance": 0.10659
}

Semantic roles & 50–950 ramp

primary
#6040CF
secondary
#C6D497
accent
#E345C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6040CF

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

Preview Lab → · Contrast checker → · Palette generator →

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