#6042CE#6042CE

#6042CE is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.204 H 286.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#6042CE
RGBrgb(96, 66, 206)
HSLhsl(253, 59%, 53%)
HSVhsv(253, 68%, 81%)
CMYKcmyk(53.4%, 68%, 0%, 19.2%)
CIE-LABlab(39.31, 48.26, -68.18)
CIE-LCHlch(39.31, 83.53, 305.29°)
OKLaboklab(49.77% 0.0569 -0.1959)
OKLCHoklch(49.77% 0.204 286.2)
XYZxyz(17.9093, 10.8385, 59.5289)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042CE #B0CE42
analogous
#426ACE #6042CE #A642CE
triadic
#6042CE #CE6042 #42CE60
tetradic
#6042CE #CE426A #B0CE42 #42CEA6
square
#6042CE #CE426A #B0CE42 #42CEA6
split-complementary
#6042CE #CEA642 #6ACE42
monochromatic
#321F77 #462BA7 #6042CE #8973DB #B2A3E7

Accessibility & contrast

On white

6.63
#6042CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6042CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042CE
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042CE#FFFFFF#000000##FFFFFF
##6042CE1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#326683
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6042ce;
/* rgb */ color: rgb(96, 66, 206);
/* oklch */ color: oklch(49.8% 0.204 286.2);
Tailwind
colors: {
  custom: {
    50: '#9779de',
    500: '#6042ce',
    950: '#000000',
  },
}
SCSS
$custom: #6042ce;
$custom-light: #9779de;
$custom-dark: #000000;
JSON
{
  "hex": "#6042ce",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 252.857,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49768,
    "c": 0.20403,
    "h": 286.2
  },
  "luminance": 0.10839
}

Semantic roles & 50–950 ramp

primary
#6042CE
secondary
#C7D498
accent
#E246C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6042CE

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

Preview Lab → · Contrast checker → · Palette generator →

#6042CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva