#6042D6#6042D6

#6042D6 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.214 H 285.1°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#6042D6
RGBrgb(96, 66, 214)
HSLhsl(252, 64%, 55%)
HSVhsv(252, 69%, 84%)
CMYKcmyk(55.1%, 69.2%, 0%, 16.1%)
CIE-LABlab(39.98, 50.59, -71.70)
CIE-LCHlch(39.98, 87.75, 305.21°)
OKLaboklab(50.45% 0.0556 -0.2062)
OKLCHoklch(50.45% 0.214 285.1)
XYZxyz(18.9060, 11.2372, 64.7781)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042D6 #B8D642
analogous
#426ED6 #6042D6 #AA42D6
triadic
#6042D6 #D66042 #42D660
tetradic
#6042D6 #D6426E #B8D642 #42D6AA
square
#6042D6 #D6426E #B8D642 #42D6AA
split-complementary
#6042D6 #D6AA42 #6ED642
monochromatic
#311C82 #4427B4 #6042D6 #8A74E1 #B5A7EC

Accessibility & contrast

On white

6.47
#6042D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6042D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042D6
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042D6#FFFFFF#000000##FFFFFF
##6042D61.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DA
Deuteranopia (green-blind)
#005AD3
Tritanopia (blue-blind)
#296987
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6042d6;
/* rgb */ color: rgb(96, 66, 214);
/* oklch */ color: oklch(50.5% 0.214 285.1);
Tailwind
colors: {
  custom: {
    50: '#9879e4',
    500: '#6042d6',
    950: '#000000',
  },
}
SCSS
$custom: #6042d6;
$custom-light: #9879e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6042d6",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 252.162,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50454,
    "c": 0.21361,
    "h": 285.1
  },
  "luminance": 0.11238
}

Semantic roles & 50–950 ramp

primary
#6042D6
secondary
#CCD99B
accent
#E740C6
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6042D6

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

Preview Lab → · Contrast checker → · Palette generator →

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