#6040C8#6040C8

#6040C8 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.0% C 0.199 H 287.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#6040C8
RGBrgb(96, 64, 200)
HSLhsl(254, 55%, 52%)
HSVhsv(254, 68%, 78%)
CMYKcmyk(52%, 68%, 0%, 21.6%)
CIE-LABlab(38.42, 47.60, -66.16)
CIE-LCHlch(38.42, 81.50, 305.74°)
OKLaboklab(48.98% 0.0597 -0.19)
OKLCHoklch(48.98% 0.199 287.4)
XYZxyz(17.0795, 10.3229, 55.7249)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040C8 #A8C840
analogous
#4064C8 #6040C8 #A440C8
triadic
#6040C8 #C86040 #40C860
tetradic
#6040C8 #C84064 #A8C840 #40C8A4
square
#6040C8 #C84064 #A8C840 #40C8A4
split-complementary
#6040C8 #C8A440 #64C840
monochromatic
#32206E #482D9D #6040C8 #8870D6 #AF9FE3

Accessibility & contrast

On white

6.85
#6040C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6040C8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040C8#FFFFFF#000000##FFFFFF
##6040C81.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0057C5
Tritanopia (blue-blind)
#38637F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6040c8;
/* rgb */ color: rgb(96, 64, 200);
/* oklch */ color: oklch(49.0% 0.199 287.4);
Tailwind
colors: {
  custom: {
    50: '#9777da',
    500: '#6040c8',
    950: '#000000',
  },
}
SCSS
$custom: #6040c8;
$custom-light: #9777da;
$custom-dark: #000000;
JSON
{
  "hex": "#6040c8",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 254.118,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48975,
    "c": 0.19914,
    "h": 287.4
  },
  "luminance": 0.10324
}

Semantic roles & 50–950 ramp

primary
#6040C8
secondary
#C2D094
accent
#DF49BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #6040C8

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

Preview Lab → · Contrast checker → · Palette generator →

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