#6040C7#6040C7

#6040C7 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.198 H 287.6°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#6040C7
RGBrgb(96, 64, 199)
HSLhsl(254, 55%, 52%)
HSVhsv(254, 68%, 78%)
CMYKcmyk(51.8%, 67.8%, 0%, 22%)
CIE-LABlab(38.33, 47.31, -65.71)
CIE-LCHlch(38.33, 80.97, 305.75°)
OKLaboklab(48.89% 0.0598 -0.1887)
OKLCHoklch(48.89% 0.198 287.6)
XYZxyz(16.9630, 10.2763, 55.1115)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040C7 #A7C740
analogous
#4064C7 #6040C7 #A440C7
triadic
#6040C7 #C76040 #40C760
tetradic
#6040C7 #C74064 #A7C740 #40C7A4
square
#6040C7 #C74064 #A7C740 #40C7A4
split-complementary
#6040C7 #C7A440 #64C740
monochromatic
#32206D #482E9C #6040C7 #876FD5 #AF9FE3

Accessibility & contrast

On white

6.87
#6040C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6040C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6040C7
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040C7#FFFFFF#000000##FFFFFF
##6040C71.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCB
Deuteranopia (green-blind)
#0057C4
Tritanopia (blue-blind)
#39627E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6040c7;
/* rgb */ color: rgb(96, 64, 199);
/* oklch */ color: oklch(48.9% 0.198 287.6);
Tailwind
colors: {
  custom: {
    50: '#9677d9',
    500: '#6040c7',
    950: '#000000',
  },
}
SCSS
$custom: #6040c7;
$custom-light: #9677d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6040c7",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 254.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48891,
    "c": 0.19792,
    "h": 287.6
  },
  "luminance": 0.10277
}

Semantic roles & 50–950 ramp

primary
#6040C7
secondary
#C1CF94
accent
#DE4ABB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #6040C7

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

Preview Lab → · Contrast checker → · Palette generator →

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