#6042DC#6042DC

#6042DC is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.221 H 284.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#6042DC
RGBrgb(96, 66, 220)
HSLhsl(252, 69%, 56%)
HSVhsv(252, 70%, 86%)
CMYKcmyk(56.4%, 70%, 0%, 13.7%)
CIE-LABlab(40.49, 52.34, -74.30)
CIE-LCHlch(40.49, 90.88, 305.16°)
OKLaboklab(50.98% 0.0545 -0.2139)
OKLCHoklch(50.98% 0.221 284.3)
XYZxyz(19.6864, 11.5493, 68.8882)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042DC #BEDC42
analogous
#4271DC #6042DC #AD42DC
triadic
#6042DC #DC6042 #42DC60
tetradic
#6042DC #DC4271 #BEDC42 #42DCAD
square
#6042DC #DC4271 #BEDC42 #42DCAD
split-complementary
#6042DC #DCAD42 #71DC42
monochromatic
#2F1A8A #4123BE #6042DC #8B76E6 #B7A9EF

Accessibility & contrast

On white

6.34
#6042DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6042DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042DC
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042DC#FFFFFF#000000##FFFFFF
##6042DC1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E1
Deuteranopia (green-blind)
#005AD9
Tritanopia (blue-blind)
#206B8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6042dc;
/* rgb */ color: rgb(96, 66, 220);
/* oklch */ color: oklch(51.0% 0.221 284.3);
Tailwind
colors: {
  custom: {
    50: '#9979e8',
    500: '#6042dc',
    950: '#000000',
  },
}
SCSS
$custom: #6042dc;
$custom-light: #9979e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6042dc",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 251.688,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50978,
    "c": 0.2207,
    "h": 284.3
  },
  "luminance": 0.11551
}

Semantic roles & 50–950 ramp

primary
#6042DC
secondary
#D0DD9D
accent
#EC3CC9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6042DC

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

Preview Lab → · Contrast checker → · Palette generator →

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