#6042CF#6042CF

#6042CF is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.9% C 0.205 H 286.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#6042CF
RGBrgb(96, 66, 207)
HSLhsl(253, 59%, 54%)
HSVhsv(253, 68%, 81%)
CMYKcmyk(53.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(39.39, 48.55, -68.62)
CIE-LCHlch(39.39, 84.06, 305.28°)
OKLaboklab(49.85% 0.0568 -0.1972)
OKLCHoklch(49.85% 0.205 286.1)
XYZxyz(18.0312, 10.8873, 60.1707)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042CF #B1CF42
analogous
#426ACF #6042CF #A642CF
triadic
#6042CF #CF6042 #42CF60
tetradic
#6042CF #CF426A #B1CF42 #42CFA6
square
#6042CF #CF426A #B1CF42 #42CFA6
split-complementary
#6042CF #CFA642 #6ACF42
monochromatic
#321F78 #462BA9 #6042CF #8973DB #B2A4E8

Accessibility & contrast

On white

6.61
#6042CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6042CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042CF
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042CF#FFFFFF#000000##FFFFFF
##6042CF1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#316683
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6042cf;
/* rgb */ color: rgb(96, 66, 207);
/* oklch */ color: oklch(49.9% 0.205 286.1);
Tailwind
colors: {
  custom: {
    50: '#9779df',
    500: '#6042cf',
    950: '#000000',
  },
}
SCSS
$custom: #6042cf;
$custom-light: #9779df;
$custom-dark: #000000;
JSON
{
  "hex": "#6042cf",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 252.766,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49853,
    "c": 0.20523,
    "h": 286.1
  },
  "luminance": 0.10888
}

Semantic roles & 50–950 ramp

primary
#6042CF
secondary
#C8D598
accent
#E345C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6042CF

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

Preview Lab → · Contrast checker → · Palette generator →

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